Skip to content

Commit

Permalink
Update test versions and remove github cache
Browse files Browse the repository at this point in the history
  • Loading branch information
cdgriffith committed Dec 10, 2024
1 parent 4bf09cb commit d3915bd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: package-check-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-test.txt') }}
# - uses: actions/cache@v3
# with:
# path: ~/.cache/pip
# key: package-check-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-test.txt') }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down Expand Up @@ -72,20 +72,21 @@ jobs:
with:
python-version: "3.13"

- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: package-manylinux-check-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-test.txt') }}
# - uses: actions/cache@v3
# with:
# path: ~/.cache/pip
# key: package-manylinux-check-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-test.txt') }}

- name: Build wheels
run: |
python -m pip install --upgrade pip
pip install cibuildwheel
python -m cibuildwheel --output-dir dist
env:
CIBW_BUILD: cp38-manylinux_x86_64 cp39-manylinux_x86_64 cp310-manylinux_x86_64 cp311-manylinux_x86_64 cp312-manylinux_x86_64
CIBW_BEFORE_BUILD: pip install Cython>=3.0.11
CIBW_BEFORE_TEST: pip install -r requirements.txt -r requirements-test.txt setuptools wheel twine
CIBW_BUILD: cp39-manylinux_x86_64 cp310-manylinux_x86_64 cp311-manylinux_x86_64 cp312-manylinux_x86_64 cp313-manylinux_x86_64
CIBW_BEFORE_BUILD: pip install Cython>=3.0.11 setuptools wheel
CIBW_BEFORE_TEST: pip install -r requirements.txt -r requirements-test.txt setuptools wheel twine Cython>=3.0.11
CIBW_BUILD_VERBOSITY: 1
CIBW_TEST_COMMAND: pytest {package}/test -vv

- name: Upload wheel artifact
Expand All @@ -106,10 +107,10 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: test-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-test.txt') }}
# - uses: actions/cache@v3
# with:
# path: ~/.cache/pip
# key: test-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-test.txt') }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
4 changes: 2 additions & 2 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
coverage>=5.0.4
coverage>=7.6.9
msgpack>=1.0
pytest>=7.1.3
pytest-cov>=2.8.1
pytest-cov>=6.0.0
ruamel.yaml>=0.17
tomli>=1.2.3; python_version < '3.11'
tomli-w>=1.0.0
Expand Down

0 comments on commit d3915bd

Please sign in to comment.