Skip to content

Commit

Permalink
Merge pull request #310 from adrn/bump-311
Browse files Browse the repository at this point in the history
Enable 3.11 in CI tests and wheel builds
  • Loading branch information
adrn authored Nov 7, 2022
2 parents 7e43404 + 1b3f60c commit 55b41dd
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 12 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/cron-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@ jobs:
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, macos-latest] # TODO: re-enable windows-latest
python: ['3.8', '3.9', '3.10']
os: [ubuntu-latest, macos-latest] # TODO: re-enable windows-latest
python: ['3.8', '3.9', '3.10', '3.11']
include:
# These set options for each python version. So, for example, when any
# python 3.10 job in the matrix runs, it should use this toxenv
# python 3.11 job in the matrix runs, it should use this toxenv
- python: '3.11'
toxenv: py311-test

- python: '3.10'
toxenv: py310-test

Expand Down
27 changes: 19 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,31 @@ jobs:
python: 3.9
toxenv: py39-test-cov

- name: Python 3.9
os: ubuntu-latest
python: '3.9'
toxenv: py39-test

- name: Python 3.10
os: ubuntu-latest
python: '3.10'
toxenv: py310-test

- name: Python 3.11
os: ubuntu-latest
python: '3.11'
toxenv: py311-test

# Has to happen on ubuntu because galpy is finnicky on macOS
- name: Python 3.9 with all optional dependencies
- name: Python 3.10 with all optional dependencies
os: ubuntu-latest
python: 3.9
toxenv: py39-test-extradeps
python: '3.10'
toxenv: py310-test-extradeps
toxposargs: --durations=50

- name: Python 3.9 without GSL
- name: Python 3.10 without GSL
os: ubuntu-latest
python: 3.9
python: '3.10'
toxenv: nogsl

- name: Python 3.8 with oldest supported version of all dependencies
Expand All @@ -51,10 +61,10 @@ jobs:
toxenv: py38-test-oldestdeps

# Mac and Windows:
- name: Python 3.9 standard tests (macOS)
- name: Python 3.10 standard tests (macOS)
os: macos-latest
python: 3.9
toxenv: py39-test
python: '3.10'
toxenv: py310-test

# - name: Python 3.9 standard tests (Windows)
# os: windows-latest
Expand Down Expand Up @@ -113,6 +123,7 @@ jobs:
if: runner.os == 'Linux'
run: |
sudo apt-get install gsl-bin libgsl0-dev build-essential
sudo apt-get install libhdf5-serial-dev # TODO: remove when h5py has 3.11 wheels
# Any *nix:
- name: Install Python dependencies - nix
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tutorials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: '3.10'

- name: Install dependencies
run: |
Expand Down

0 comments on commit 55b41dd

Please sign in to comment.