Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Test with Python 3.13 #834

Merged
merged 4 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, TIL @henryiii!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I figured it out today too. :) I've been seeing my feedstocks being rebuilt for 3.13, so I knew it had to be somewhere.

- 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
henryiii marked this conversation as resolved.
Show resolved Hide resolved
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
Loading