Skip to content

Commit dfa69c6

Browse files
astrofrogpllim
andcommitted
Updated CI configuration
Simplified publish workflow Make publish job dependent on tests Add back Python 3.7 Rename pytest46 to pytestoldest and add Python 3.12 testing Use latest developer version of Numpy and pytest for Python 3.12 Co-authored-by: P. L. Lim <[email protected]>
1 parent 16dfa20 commit dfa69c6

File tree

3 files changed

+35
-92
lines changed

3 files changed

+35
-92
lines changed

.github/workflows/ci_workflows.yml

Lines changed: 24 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -9,45 +9,27 @@ on:
99

1010
jobs:
1111
tests:
12-
runs-on: ${{ matrix.os }}
13-
strategy:
14-
fail-fast: false
15-
matrix:
16-
include:
17-
- os: ubuntu-latest
18-
python-version: 3.7
19-
toxenv: py37-test-pytest46
20-
- os: windows-latest
21-
python-version: 3.7
22-
toxenv: py37-test-pytest50
23-
- os: macos-latest
24-
python-version: 3.8
25-
toxenv: py38-test-pytest52
26-
- os: ubuntu-latest
27-
python-version: 3.8
28-
toxenv: py38-test-pytest53
29-
- os: windows-latest
30-
python-version: 3.9
31-
toxenv: py39-test-pytest60
32-
- os: macos-latest
33-
python-version: 3.9
34-
toxenv: py39-test-pytest61
35-
- os: ubuntu-latest
36-
python-version: '3.10'
37-
toxenv: py310-test-pytest62
38-
- os: ubuntu-latest
39-
python-version: '3.10'
40-
toxenv: py310-test-pytestdev
41-
42-
steps:
43-
- uses: actions/checkout@v2
44-
with:
45-
fetch-depth: 0
46-
- name: Set up Python ${{ matrix.python-version }}
47-
uses: actions/setup-python@v2
48-
with:
49-
python-version: ${{ matrix.python-version }}
50-
- name: Install tox
51-
run: python -m pip install tox
52-
- name: Run tox
53-
run: tox -v -e ${{ matrix.toxenv }}
12+
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
13+
with:
14+
envs: |
15+
- linux: py37-test-pytestoldest
16+
- macos: py37-test-pytest50
17+
- windows: py38-test-pytest52
18+
- linux: py38-test-pytest53
19+
- macos: py39-test-pytest60
20+
- windows: py39-test-pytest61
21+
- linux: py39-test-pytest62
22+
- macos: py310-test-pytest70
23+
- windows: py310-test-pytest71
24+
- linux: py310-test-pytest72
25+
- macos: py310-test-pytest73
26+
- windows: py311-test-pytest74
27+
- linux: py312-test-pytestdev
28+
publish:
29+
needs: tests
30+
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@v1
31+
with:
32+
test_extras: test
33+
test_command: pytest $GITHUB_WORKSPACE/tests; pytest --arraydiff $GITHUB_WORKSPACE/tests
34+
secrets:
35+
pypi_token: ${{ secrets.pypi_password }}

.github/workflows/publish.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

tox.ini

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
envlist =
3-
py{37,38,39,310}-test{,-devdeps}
3+
py{37,38,39,310,311}-test{,-devdeps}
44
codestyle
55
requires =
66
setuptools >= 30.3.0
@@ -9,16 +9,25 @@ isolated_build = true
99

1010
[testenv]
1111
changedir = .tmp/{envname}
12+
setenv =
13+
# Until a released numpy version is 3.12 compatible, we install the dev wheel
14+
py312: PIP_EXTRA_INDEX_URL = https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
1215
description = run tests
1316
deps =
14-
pytest46: pytest==4.6.*
17+
pytestoldest: pytest==4.6.0
1518
pytest50: pytest==5.0.*
1619
pytest52: pytest==5.2.*
1720
pytest53: pytest==5.3.*
1821
pytest60: pytest==6.0.*
1922
pytest61: pytest==6.1.*
2023
pytest62: pytest==6.2.*
24+
pytest70: pytest==7.0.*
25+
pytest71: pytest==7.1.*
26+
pytest72: pytest==7.2.*
27+
pytest73: pytest==7.3.*
28+
pytest74: pytest==7.4.*
2129
pytestdev: git+https://github.com/pytest-dev/pytest#egg=pytest
30+
py312: numpy>=0.0.dev0
2231
extras =
2332
test
2433
commands =

0 commit comments

Comments
 (0)