Skip to content

Commit

Permalink
ci: test with Python 3.13 (#834)
Browse files Browse the repository at this point in the history
* ci: Test with Python 3.13

* Update ci.yml

* ci: include hidden files (v4.4 requirement)

* Update .github/workflows/ci.yml

---------

Co-authored-by: Henry Schreiner <[email protected]>
  • Loading branch information
edgarrmondragon and henryiii authored Sep 9, 2024
1 parent e0868b6 commit fd61a65
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-latest, macos-13]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
include:
- os: macos-14
python-version: "3.12"
Expand All @@ -30,6 +36,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Setup uv
uses: yezz123/setup-uv@v4
- name: Set up Miniconda
Expand All @@ -39,6 +46,7 @@ jobs:
python-version: ${{ matrix.python-version }}
miniforge-variant: Mambaforge
use-mamba: true
channels: conda-forge/label/python_rc,conda-forge
- name: Install Nox-under-test (uv)
run: uv pip install --system .
- name: Run tests on ${{ matrix.os }} (tox <4)
Expand All @@ -50,6 +58,8 @@ jobs:
with:
name: coverage-${{ github.job }}-${{ strategy.job-index }}
path: .coverage.*
include-hidden-files: true
if-no-files-found: error

coverage:
needs: build
Expand Down
4 changes: 3 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"python, tox_version",
[
(python, tox_version)
for python in ("3.8", "3.9", "3.10", "3.11", "3.12")
for python in ("3.8", "3.9", "3.10", "3.11", "3.12", "3.13")
for tox_version in ("latest", "<4")
],
)
Expand Down Expand Up @@ -186,6 +186,7 @@ def _check_python_version(session: nox.Session) -> None:
"3.10",
"3.11",
"3.12",
"3.13",
"pypy3.9",
"pypy3.10",
]
Expand All @@ -203,6 +204,7 @@ def github_actions_default_tests(session: nox.Session) -> None:
"3.10",
"3.11",
"3.12",
"3.13",
"pypy3.8",
"pypy3.9",
"pypy3.10",
Expand Down

0 comments on commit fd61a65

Please sign in to comment.