File tree Expand file tree Collapse file tree 1 file changed +20
-13
lines changed Expand file tree Collapse file tree 1 file changed +20
-13
lines changed Original file line number Diff line number Diff line change 9
9
requirements :
10
10
strategy :
11
11
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 }}
19
26
steps :
20
27
- uses : actions/checkout@v3
21
- - name : Setup python ${{ matrix.python-version }}
28
+ - name : Setup python ${{ matrix.runtime. python-version }}
22
29
uses : actions/setup-python@v4
23
30
with :
24
- python-version : ${{ matrix.python-version }}
31
+ python-version : ${{ matrix.runtime. python-version }}
25
32
- name : Update pip and install pip-tools
26
33
run : pip install --upgrade pip pip-tools
27
34
- name : Build requirements
28
35
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
31
38
- name : Store requirements as artifact
32
39
uses : actions/upload-artifact@v3
33
40
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
You can’t perform that action at this time.
0 commit comments