Skip to content

Commit

Permalink
Add CI tests for Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
larrybradley committed Sep 26, 2023
1 parent 6272e94 commit 5b83782
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci_cron_daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ jobs:
tox_env: 'py311-test-devdeps'
toxposargs: --remote-data=any
allow_failure: true
prefix: '(Allowed failure)'

- os: ubuntu-latest
python: '3.12-dev'
tox_env: 'py312-test-devdeps'
toxposargs: --remote-data=any
allow_failure: true
prefix: '(Allowed failure)'

steps:
- name: Check out repository
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/ci_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ jobs:
allow_failure: true
prefix: '(Allowed failure)'

- os: ubuntu-latest
python: '3.12-dev'
tox_env: 'py312-test-devdeps'
toxposargs: --remote-data=any
allow_failure: true
prefix: '(Allowed failure)'

steps:
- name: Check out repository
uses: actions/checkout@v4
Expand All @@ -109,8 +116,7 @@ jobs:
python-version: ${{ matrix.python }}
- name: Install base dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox
python -m pip install --upgrade pip setuptools tox
- name: Print Python, pip, setuptools, and tox versions
run: |
python -c "import sys; print(f'Python {sys.version}')"
Expand Down
8 changes: 5 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
envlist =
py{39,310,311}-test{,-alldeps,-devdeps,-oldestdeps,-devinfra}{,-cov}
py{39,310,311}-test-numpy{122,123,124,125,126}
py{39,310,311,312}-test{,-alldeps,-devdeps,-oldestdeps,-devinfra}{,-cov}
py{39,310,311,312}-test-numpy{122,123,124,125,126}
build_docs
linkcheck
codestyle
Expand Down Expand Up @@ -72,7 +72,9 @@ deps =
devdeps: scikit-learn>=0.0.dev0
devdeps: matplotlib>=0.0.dev0
devdeps: astropy>=0.0.dev0
devdeps: git+https://github.com/spacetelescope/gwcs.git
# TEMPORARY: gwcs used deprecated pkg_resources
# https://github.com/spacetelescope/gwcs/pull/478
# devdeps: git+https://github.com/spacetelescope/gwcs.git

# Latest developer version of infrastructure packages.
devinfra: git+https://github.com/pytest-dev/pytest.git
Expand Down

0 comments on commit 5b83782

Please sign in to comment.