Skip to content

Commit

Permalink
ci: add matrix tests on multiple python-version
Browse files Browse the repository at this point in the history
  • Loading branch information
ak1ra-komj committed Feb 6, 2025
1 parent 19b8576 commit e8971ab
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pypi-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
- uses: actions/checkout@v4

- uses: pdm-project/setup-pdm@v4
with:
python-version: 3.11

- name: Publish package distributions to PyPI
run: pdm publish
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,22 @@ on:
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v4

- uses: pdm-project/setup-pdm@v4
with:
python-version: 3.11
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: pdm install

- name: Run nox
run: pdm run nox
- name: Run nox tests
run: pdm run nox -s tests

- name: Run nox lint
run: pdm run nox -s lint

0 comments on commit e8971ab

Please sign in to comment.