Skip to content

Commit

Permalink
Merge pull request #153 from notatallshaw/run-python-3.12-and-3.13-an…
Browse files Browse the repository at this point in the history
…d-bump-all-versions-in-ci.yml

Run tests against Python 3.12, 3.13, and use latest version of CI dependencies
  • Loading branch information
pradyunsg authored Jun 14, 2024
2 parents 87c9d7b + 401cdcd commit adf0800
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,38 @@ jobs:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- run: pip install nox
- run: nox -s lint
package:
name: Package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- run: pip install nox
- run: nox -s release -- --version '' --repo '' --prebump ''
test:
name: Test
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
needs: [lint]
strategy:
fail-fast: true
matrix:
python:
- "3.13"
- "3.12"
- "3.11"
- "3.10"
- "3.9"
- "3.8"
- "3.7"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
allow-prereleases: true
- run: pip install nox
- run: nox -s tests-${{ matrix.python }}
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def lint(session):
session.run("mypy", "src", "tests")


@nox.session(python=["3.11", "3.10", "3.9", "3.8", "3.7", "2.7"])
@nox.session(python=["3.13", "3.12", "3.11", "3.10", "3.9", "3.8", "3.7"])
def tests(session):
session.install(".[test]")

Expand Down

0 comments on commit adf0800

Please sign in to comment.