Skip to content

Commit

Permalink
Use strict requirements for cibuildwheel tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Erotemic committed Apr 28, 2024
1 parent b8e3f74 commit e59b1fd
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 28 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,67 +222,67 @@ jobs:
arch: auto
- python-version: '3.12'
install-extras: tests
os: windows-latest
os: macOS-latest
arch: auto
- python-version: '3.12'
install-extras: tests
os: windows-latest
arch: auto
- python-version: '3.6'
install-extras: tests,optional
os: windows-latest
os: ubuntu-20.04
arch: auto
- python-version: '3.7'
install-extras: tests,optional
os: windows-latest
os: ubuntu-latest
arch: auto
- python-version: '3.8'
install-extras: tests,optional
os: windows-latest
os: ubuntu-latest
arch: auto
- python-version: '3.9'
install-extras: tests,optional
os: windows-latest
os: ubuntu-latest
arch: auto
- python-version: '3.10'
install-extras: tests,optional
os: windows-latest
os: ubuntu-latest
arch: auto
- python-version: '3.11'
install-extras: tests,optional
os: windows-latest
os: ubuntu-latest
arch: auto
- python-version: '3.12'
install-extras: tests,optional
os: windows-latest
os: ubuntu-latest
arch: auto
- python-version: '3.6'
install-extras: tests,optional
os: windows-latest
os: macos-13
arch: auto
- python-version: '3.7'
install-extras: tests,optional
os: windows-latest
os: macos-13
arch: auto
- python-version: '3.8'
install-extras: tests,optional
os: windows-latest
os: macOS-latest
arch: auto
- python-version: '3.9'
install-extras: tests,optional
os: windows-latest
os: macOS-latest
arch: auto
- python-version: '3.10'
install-extras: tests,optional
os: windows-latest
os: macOS-latest
arch: auto
- python-version: '3.11'
install-extras: tests,optional
os: windows-latest
os: macOS-latest
arch: auto
- python-version: '3.12'
install-extras: tests,optional
os: windows-latest
os: macOS-latest
arch: auto
- python-version: '3.6'
install-extras: tests,optional
Expand Down Expand Up @@ -405,8 +405,8 @@ jobs:
runs-on: ubuntu-latest
if: github.event_name == 'push' && ! startsWith(github.event.ref, 'refs/tags') && ! startsWith(github.event.ref, 'refs/heads/release')
needs:
- build_and_test_sdist
- build_binpy_wheels
- build_and_test_sdist
steps:
- name: Checkout source
uses: actions/checkout@v4.1.1
Expand Down Expand Up @@ -479,8 +479,8 @@ jobs:
runs-on: ubuntu-latest
if: github.event_name == 'push' && (startsWith(github.event.ref, 'refs/tags') || startsWith(github.event.ref, 'refs/heads/release'))
needs:
- build_and_test_sdist
- build_binpy_wheels
- build_and_test_sdist
steps:
- name: Checkout source
uses: actions/checkout@v4.1.1
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ omit =[
build = "cp36-* cp37-* cp38-* cp39-* cp310-* cp311-* cp312-*"
build-frontend = "build"
build-verbosity = 1
test-requires = [ "-r requirements/tests.txt",]
#test-requires = [ "-r requirements/tests-strict.txt",]
test-command = "python {project}/run_tests.py"
test-extras = ["tests-strict", "runtime-strict"]

# https://cibuildwheel.readthedocs.io/en/stable/options/#archs
[tool.cibuildwheel.macos]
Expand Down
25 changes: 15 additions & 10 deletions requirements/tests.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
pytest>=8.1.1 ; python_version < '4.0' and python_version >= '3.13' # Python 3.13+
pytest>=8.1.1 ; python_version < '3.13' and python_version >= '3.12' # Python 3.12
pytest>=8.1.1 ; python_version < '3.12' and python_version >= '3.11' # Python 3.11
pytest>=6.2.5 ; python_version < '3.11' and python_version >= '3.10' # Python 3.10
pytest>=6.2.5 ; python_version < '3.10' and python_version >= '3.9' # Python 3.9
pytest>=6.2.5 ; python_version < '3.9' and python_version >= '3.8' # Python 3.8
pytest<=6.2.5 ; python_version < '3.8' and python_version >= '3.7' # Python 3.7
pytest<=6.2.5 ; python_version < '3.7' and python_version >= '3.6' # Python 3.6
pytest>=7.4.4 ; python_version < '4.0' and python_version >= '3.13' # Python 3.13+
pytest>=7.4.4 ; python_version < '3.13' and python_version >= '3.12' # Python 3.12
pytest>=7.4.4 ; python_version < '3.12' and python_version >= '3.11' # Python 3.11
pytest>=7.4.4 ; python_version < '3.11' and python_version >= '3.10' # Python 3.10
pytest>=7.4.4 ; python_version < '3.10' and python_version >= '3.9' # Python 3.9
pytest>=7.4.4 ; python_version < '3.9' and python_version >= '3.8' # Python 3.8
pytest>=7.4.4 ; python_version < '3.8' and python_version >= '3.7' # Python 3.7
pytest>=6.2.5 ; python_version < '3.7' and python_version >= '3.6' # Python 3.6

pytest-cov>=3.0.0 ; python_version >= '3.6.0' # Python 3.6+

coverage[toml] >= 5.3
ubelt >= 1.3.4
coverage[toml]>=7.3.0 ; python_version < '4.0' and python_version >= '3.12' # Python 3.12
coverage[toml]>=6.5.0 ; python_version < '3.12' and python_version >= '3.10' # Python 3.10-3.11
coverage[toml]>=6.5.0 ; python_version < '3.10' and python_version >= '3.9' # Python 3.9
coverage[toml]>=6.5.0 ; python_version < '3.9' and python_version >= '3.8' # Python 3.8
coverage[toml]>=6.5.0 ; python_version < '3.8' and python_version >= '3.7' # Python 3.7
coverage[toml]>=6.1.1 ; python_version < '3.7' and python_version >= '3.6' # Python 3.6

ubelt >= 1.3.4
xdoctest >= 1.1.3

0 comments on commit e59b1fd

Please sign in to comment.