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 #798

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
39 changes: 22 additions & 17 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: "3.13"
allow-prereleases: true

- uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -112,7 +113,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.12"] # 3.9 is the lowest version pre-commit supports
python-version: ["3.9", "3.13"] # 3.9 is the lowest version pre-commit supports
env:
LOCK_FILE_LOCATION: .ci-package-locks/code-quality/python${{ matrix.python-version }}.txt
DIFF_FILE_LOCATION: diff-code-quality-python${{ matrix.python-version }}.txt
Expand All @@ -124,6 +125,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true

- name: Prepare
id: prepare
Expand Down Expand Up @@ -174,21 +176,19 @@ jobs:

test-install:
needs: [build]
runs-on: ${{ matrix.os }}-${{(matrix.os == 'ubuntu' && matrix.python == '3.6') && '20.04' || (matrix.os == 'macos' && matrix.python == '3.6') && '13' || 'latest' }}
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu, macos, windows]
python: ["3.6", "3.10"]
exclude:
- os: windows
python: 3.6
python: ["3.9", "3.13"]

steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
allow-prereleases: true

- uses: actions/checkout@v4

Expand Down Expand Up @@ -239,7 +239,7 @@ jobs:
matrix:
os: [ubuntu, macos, windows]
# just 1 version, it's heavy
python-version: ["3.10"]
python-version: ["3.13"]
env:
LOCK_FILE_LOCATION: .ci-package-locks/pyinstaller/os${{ matrix.os }}-python${{ matrix.python-version }}.txt

Expand All @@ -250,6 +250,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
cache: "pip"

- uses: actions/download-artifact@v4
Expand Down Expand Up @@ -348,7 +349,7 @@ jobs:
# osx should work fine (and we test that locally often)
os: [ubuntu, windows]
# just 1 version, it's heavy
python-version: [3.8]
python-version: ["3.13"]
ipywidgets_major: ["7", "8"]
include:
- ipywidgets_major: "7"
Expand All @@ -366,6 +367,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
cache: "pip"

- uses: actions/download-artifact@v4
Expand Down Expand Up @@ -464,7 +466,7 @@ jobs:
# osx should work fine (and we test that locally often)
os: [ubuntu]
# just 1 version, it's heavy
python-version: [3.8]
python-version: ["3.13"]
ipywidgets_major: ["8"]
include:
- ipywidgets_major: "8"
Expand All @@ -480,6 +482,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
cache: "pip"

- uses: actions/download-artifact@v4
Expand Down Expand Up @@ -564,21 +567,21 @@ jobs:

unit-test:
needs: [build]
runs-on: ${{ matrix.os }}-${{(matrix.os == 'ubuntu' && matrix.python == '3.6') && '20.04' || (matrix.os == 'macos' && matrix.python == '3.6') && '13' || 'latest' }}
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu, macos, windows]
python: [3.6, 3.9]
python: ["3.9", "3.13"]
ipywidgets: ["7.7", "8.0"]
exclude:
- os: windows
python: 3.6
python: "3.9"
- os: ubuntu
python: 3.6
python: "3.9"
ipywidgets: "8.0"
- os: macos
python: 3.6
python: "3.9"
ipywidgets: "8.0"
env:
LOCK_FILE_LOCATION: .ci-package-locks/unit/os${{ matrix.os }}-python${{ matrix.python }}-ipywidgets${{ matrix.ipywidgets }}.txt
Expand All @@ -591,6 +594,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
allow-prereleases: true
cache: "pip"

- uses: actions/download-artifact@v4
Expand Down Expand Up @@ -703,10 +707,11 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up Python 3.7
- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: 3.7
python-version: "3.13"
allow-prereleases: true

- uses: actions/download-artifact@v4
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/webdeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.8"
python-version: "3.13"
allow-prereleases: true

- name: Install solara
run: |
Expand Down
Loading