Skip to content
This repository was archived by the owner on Jun 27, 2025. It is now read-only.

Commit 0c16ee8

Browse files
committed
updated workflows, requirements
1 parent 407f984 commit 0c16ee8

5 files changed

Lines changed: 37 additions & 13 deletions

File tree

.github/workflows/ci.yml

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,20 @@ jobs:
2727
strategy:
2828
fail-fast: false
2929
matrix:
30-
os: [macos-12, ubuntu-20.04, windows-2022]
30+
os: [macos-12, ubuntu-22.04, windows-2022]
3131
minor: [7, 8]
3232
runs-on: ${{ matrix.os }}
3333
steps:
3434
- uses: actions/checkout@v3
3535
- uses: actions/setup-python@v3
36-
- uses: pypa/cibuildwheel@v2.12.3
36+
- uses: pypa/cibuildwheel@v2.13.0
3737
with:
3838
output-dir: dist
3939
env:
4040
CIBW_BUILD: cp3${{ matrix.minor }}-*
4141
CIBW_ARCHS_MACOS: all
4242
CIBW_BEFORE_BUILD: pip install -r {project}/requirements-build-backward.txt
43-
CIBW_BEFORE_TEST: pip install -r {project}/requirements-backward.txt
43+
CIBW_BEFORE_TEST: pip install -r {project}/requirements-test-backward.txt
4444
CIBW_TEST_COMMAND: pytest {project}
4545

4646
- uses: actions/upload-artifact@v3
@@ -53,31 +53,51 @@ jobs:
5353
strategy:
5454
fail-fast: false
5555
matrix:
56-
os: [macos-12, ubuntu-20.04, windows-2022]
56+
os: [macos-12, ubuntu-22.04, windows-2022]
5757
minor: [9, 10, 11]
5858
runs-on: ${{ matrix.os }}
5959
steps:
6060
- uses: actions/checkout@v3
6161
- uses: actions/setup-python@v3
62-
- uses: pypa/cibuildwheel@v2.12.3
62+
- uses: pypa/cibuildwheel@v2.13.0
6363
with:
6464
output-dir: dist
6565
env:
6666
CIBW_BUILD: cp3${{ matrix.minor }}-*
6767
CIBW_ARCHS_MACOS: all
6868
CIBW_BEFORE_BUILD: pip install -r {project}/requirements-build.txt
69-
CIBW_BEFORE_TEST: pip install -r {project}/requirements.txt
69+
CIBW_BEFORE_TEST: pip install -r {project}/requirements-test.txt
7070
CIBW_TEST_COMMAND: pytest {project}
7171

7272
- uses: actions/upload-artifact@v3
7373
with:
7474
name: dist
7575
path: dist
7676

77+
forward:
78+
name: Build / ${{ matrix.os }} / Python 3.${{ matrix.minor }}
79+
strategy:
80+
fail-fast: false
81+
matrix:
82+
os: [ubuntu-22.04]
83+
minor: [11]
84+
runs-on: ${{ matrix.os }}
85+
steps:
86+
- uses: actions/checkout@v3
87+
- uses: actions/setup-python@v3
88+
- uses: pypa/cibuildwheel@v2.13.0
89+
with:
90+
output-dir: dist
91+
env:
92+
CIBW_BUILD: cp3${{ matrix.minor }}-*
93+
CIBW_BEFORE_BUILD: pip install -r {project}/requirements-build.txt
94+
CIBW_BEFORE_TEST: pip install -r {project}/requirements-test-forward.txt
95+
CIBW_TEST_COMMAND: pytest {project}
96+
7797
upload:
7898
name: Publish
7999
if: github.event_name == 'release' && github.event.action == 'published'
80-
needs: [tar_gz, whl_lt_3_9, whl_gte_3_9]
100+
needs: [tar_gz, whl_lt_3_9, whl_gte_3_9, forward]
81101
runs-on: ubuntu-latest
82102
steps:
83103
- uses: actions/download-artifact@v3
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ black==22.3.0
22
hypothesis==6.70.0
33
invoke==1.7.1
44
pytest==7.1.2
5-
tzdata==2022.1
65
numpy==1.18.5

requirements-test-forward.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
black==22.3.0
2+
hypothesis==6.70.0
3+
invoke==1.7.1
4+
pytest==7.1.2
5+
numpy==1.24.3

requirements-test.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
black==22.3.0
2+
hypothesis==6.70.0
3+
invoke==1.7.1
4+
pytest==7.1.2
5+
numpy==1.23.5

requirements.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
1-
black==22.3.0
2-
hypothesis==6.70.0
3-
invoke==1.7.1
4-
pytest==7.1.2
5-
tzdata==2022.1
61
numpy==1.23.5

0 commit comments

Comments
 (0)