Skip to content

Commit

Permalink
Make sure test matrix is consistent
Browse files Browse the repository at this point in the history
across the board and add the codestyle check
  • Loading branch information
pllim committed Nov 15, 2023
1 parent dfa69c6 commit 98e772b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci_workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
with:
envs: |
- linux: codestyle
- linux: py37-test-pytestoldest
- macos: py37-test-pytest50
- windows: py38-test-pytest52
Expand All @@ -24,7 +25,7 @@ jobs:
- linux: py310-test-pytest72
- macos: py310-test-pytest73
- windows: py311-test-pytest74
- linux: py312-test-pytestdev
- linux: py312-test-devdeps
publish:
needs: tests
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@v1
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ classifiers =
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: Implementation :: CPython
Topic :: Software Development :: Testing
Topic :: Utilities
Expand Down
10 changes: 5 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{37,38,39,310,311}-test{,-devdeps}
py{37,38,39,310,311,312}-test{,-pytestoldest,-pytest50,-pytest52,-pytest53,-pytest60,-pytest61,-pytest62,-pytest70,-pytest71,-pytest72,-pytest73,-pytest74,-devdeps}
codestyle
requires =
setuptools >= 30.3.0
Expand All @@ -10,8 +10,7 @@ isolated_build = true
[testenv]
changedir = .tmp/{envname}
setenv =
# Until a released numpy version is 3.12 compatible, we install the dev wheel
py312: PIP_EXTRA_INDEX_URL = https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
devdeps: PIP_EXTRA_INDEX_URL = https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
description = run tests
deps =
pytestoldest: pytest==4.6.0
Expand All @@ -26,8 +25,8 @@ deps =
pytest72: pytest==7.2.*
pytest73: pytest==7.3.*
pytest74: pytest==7.4.*
pytestdev: git+https://github.com/pytest-dev/pytest#egg=pytest
py312: numpy>=0.0.dev0
devdeps: git+https://github.com/pytest-dev/pytest#egg=pytest
devdeps: numpy>=0.0.dev0
extras =
test
commands =
Expand All @@ -37,6 +36,7 @@ commands =

[testenv:codestyle]
skip_install = true
changedir = {toxinidir}
description = check code style, e.g. with flake8
deps = flake8
commands = flake8 pytest_arraydiff --count

0 comments on commit 98e772b

Please sign in to comment.