Skip to content

Commit 8046eb0

Browse files
committed
Install correct requirements before build/test.
1 parent 0e55e6a commit 8046eb0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@master
1313
- uses: actions/setup-python@master
14+
- run: pip install -r requirements.txt
1415
- run: python setup.py sdist
1516
- uses: actions/upload-artifact@master
1617
with:
@@ -29,8 +30,9 @@ jobs:
2930
- run: pip install cibuildwheel
3031
- run: cibuildwheel --output-dir dist
3132
env:
33+
CIBW_BEFORE_BUILD: pip install -r {project}/requirements.txt
3234
CIBW_BUILD: cp3${{ matrix.minor }}-*
33-
CIBW_BEFORE_TEST: pip install -r {project}/requirements.txt
35+
CIBW_BEFORE_TEST: pip install -r {project}/requirements-test.txt
3436
CIBW_TEST_COMMAND: pytest {project}
3537
- uses: actions/upload-artifact@master
3638
with:

requirements-test.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pytest

0 commit comments

Comments
 (0)