7
7
branches :
8
8
- master
9
9
release :
10
- types : published
10
+ types : [ published]
11
11
jobs :
12
12
tar_gz :
13
13
name : Package
14
- runs-on : ubuntu-latest
14
+ runs-on : ubuntu-20.04
15
15
steps :
16
16
- uses : actions/checkout@master
17
17
- uses : actions/setup-python@master
18
18
with :
19
19
python-version : 3.8
20
20
- run : pip install -r requirements-build-backward.txt
21
21
- run : python setup.py sdist
22
- - uses : actions/upload-artifact@master
22
+ - uses : actions/upload-artifact@v3
23
23
with :
24
24
name : dist
25
25
path : dist
@@ -28,17 +28,17 @@ jobs:
28
28
strategy :
29
29
fail-fast : false
30
30
matrix :
31
- os : [macOS, Ubuntu, Windows ]
31
+ os : [macos-11, ubuntu-20.04, windows-2022 ]
32
32
major : [3]
33
33
minor : [7, 8]
34
- runs-on : ${{ matrix.os }}-latest
34
+ runs-on : ${{ matrix.os }}
35
35
steps :
36
36
- uses : actions/checkout@master
37
37
- uses : actions/setup-python@master
38
38
- run : echo '::add-matcher::.github/problem-matchers/gcc.json'
39
- if : matrix.os == 'macOS ' || matrix.os == 'Ubuntu '
39
+ if : matrix.os == 'macos-11 ' || matrix.os == 'ubuntu-20.04 '
40
40
- run : echo '::add-matcher::.github/problem-matchers/msvc.json'
41
- if : matrix.os == 'Windows '
41
+ if : matrix.os == 'windows-2022 '
42
42
43
43
with :
44
44
output-dir : dist
49
49
CIBW_BUILD_VERBOSITY : 1
50
50
CIBW_BEFORE_TEST : pip install -r {project}/requirements-test-backward.txt
51
51
CIBW_TEST_COMMAND : pytest {project}/test
52
- - uses : actions/upload-artifact@master
52
+ - uses : actions/upload-artifact@v3
53
53
with :
54
54
name : dist
55
55
path : dist
@@ -58,17 +58,17 @@ jobs:
58
58
strategy :
59
59
fail-fast : false
60
60
matrix :
61
- os : [macOS, Ubuntu, Windows ]
61
+ os : [macos-11, ubuntu-20.04, windows-2022 ]
62
62
major : [3]
63
63
minor : [9, 10, 11]
64
- runs-on : ${{ matrix.os }}-latest
64
+ runs-on : ${{ matrix.os }}
65
65
steps :
66
66
- uses : actions/checkout@master
67
67
- uses : actions/setup-python@master
68
68
- run : echo '::add-matcher::.github/problem-matchers/gcc.json'
69
- if : matrix.os == 'macOS ' || matrix.os == 'Ubuntu '
69
+ if : matrix.os == 'macos-11 ' || matrix.os == 'ubuntu-20.04 '
70
70
- run : echo '::add-matcher::.github/problem-matchers/msvc.json'
71
- if : matrix.os == 'Windows '
71
+ if : matrix.os == 'windows-2022 '
72
72
73
73
with :
74
74
output-dir : dist
@@ -79,17 +79,17 @@ jobs:
79
79
CIBW_BUILD_VERBOSITY : 1
80
80
CIBW_BEFORE_TEST : pip install -r {project}/requirements-test.txt
81
81
CIBW_TEST_COMMAND : pytest {project}/test
82
- - uses : actions/upload-artifact@master
82
+ - uses : actions/upload-artifact@v3
83
83
with :
84
84
name : dist
85
85
path : dist
86
86
upload :
87
87
name : Publish
88
- if : github.event_name == 'release' && github.event.action == 'published'
88
+ if : github.event_name == 'release'
89
89
needs : [tar_gz, whl_lt_3_9, whl_gte_3_9]
90
- runs-on : ubuntu-latest
90
+ runs-on : ubuntu-20.04
91
91
steps :
92
- - uses : actions/download-artifact@master
92
+ - uses : actions/download-artifact@v3
93
93
with :
94
94
name : dist
95
95
path : dist
0 commit comments