Skip to content

Commit 725725f

Browse files
committed
Build requirements for windows-latest machine.
1 parent 813328f commit 725725f

File tree

1 file changed

+20
-13
lines changed

1 file changed

+20
-13
lines changed

.github/workflows/requirements.yml

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,34 @@ jobs:
99
requirements:
1010
strategy:
1111
matrix:
12-
python-version:
13-
- "3.7"
14-
- "3.8"
15-
- "3.9"
16-
- "3.10"
17-
- "3.11"
18-
runs-on: ubuntu-latest
12+
runtime:
13+
- machine: ubuntu-latest
14+
python-version: "3.7"
15+
- machine: ubuntu-latest
16+
python-version: "3.8"
17+
- machine: ubuntu-latest
18+
python-version: "3.9"
19+
- machine: ubuntu-latest
20+
python-version: "3.10"
21+
- machine: ubuntu-latest
22+
python-version: "3.11"
23+
- machine: windows-latest
24+
python-version: "3.10"
25+
runs-on: ${{ matrix.runtime.machine }}
1926
steps:
2027
- uses: actions/checkout@v3
21-
- name: Setup python ${{ matrix.python-version }}
28+
- name: Setup python ${{ matrix.runtime.python-version }}
2229
uses: actions/setup-python@v4
2330
with:
24-
python-version: ${{ matrix.python-version }}
31+
python-version: ${{ matrix.runtime.python-version }}
2532
- name: Update pip and install pip-tools
2633
run: pip install --upgrade pip pip-tools
2734
- name: Build requirements
2835
run: |
29-
rm requirements/${{ matrix.python-version }}.txt
30-
pip-compile --resolver=backtracking -v --upgrade -o requirements/${{ matrix.python-version }}.txt
36+
rm -f requirements.txt
37+
pip-compile --resolver=backtracking -v --upgrade -o requirements.txt
3138
- name: Store requirements as artifact
3239
uses: actions/upload-artifact@v3
3340
with:
34-
name: requirements-${{ matrix.python-version }}.txt
35-
path: requirements/${{ matrix.python-version }}.txt
41+
name: requirements-${{ matrix.runtime.machine }}-${{ matrix.runtime.python-version }}.txt
42+
path: requirements.txt

0 commit comments

Comments
 (0)