Skip to content

Commit

Permalink
GitHub Actions setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtraschke committed Nov 3, 2024
1 parent dd7e434 commit 81056ae
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Python package

on:
- push
- pull_request

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Test with tox
run: tox
8 changes: 8 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ requires = tox>=4
env_list = 3.{9,10,11,12,13}
skip_missing_interpreters = true

[gh-actions]
python =
3.9: 3.9
3.10: 3.10
3.11: 3.11
3.12: 3.12
3.13: 3.13

[testenv]
deps =
pytest
Expand Down

0 comments on commit 81056ae

Please sign in to comment.