77 branches :
88 - master
99 release :
10- types : published
10+ types : [ published]
1111jobs :
1212 tar_gz :
1313 name : Package
14- runs-on : ubuntu-latest
14+ runs-on : ubuntu-20.04
1515 steps :
1616 - uses : actions/checkout@master
1717 - uses : actions/setup-python@master
1818 with :
1919 python-version : 3.8
2020 - run : pip install -r requirements-build-backward.txt
2121 - run : python setup.py sdist
22- - uses : actions/upload-artifact@master
22+ - uses : actions/upload-artifact@v3
2323 with :
2424 name : dist
2525 path : dist
@@ -28,17 +28,17 @@ jobs:
2828 strategy :
2929 fail-fast : false
3030 matrix :
31- os : [macOS, Ubuntu, Windows ]
31+ os : [macos-11, ubuntu-20.04, windows-2022 ]
3232 major : [3]
3333 minor : [7, 8]
34- runs-on : ${{ matrix.os }}-latest
34+ runs-on : ${{ matrix.os }}
3535 steps :
3636 - uses : actions/checkout@master
3737 - uses : actions/setup-python@master
3838 - 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 '
4040 - run : echo '::add-matcher::.github/problem-matchers/msvc.json'
41- if : matrix.os == 'Windows '
41+ if : matrix.os == 'windows-2022 '
42424343 with :
4444 output-dir : dist
4949 CIBW_BUILD_VERBOSITY : 1
5050 CIBW_BEFORE_TEST : pip install -r {project}/requirements-test-backward.txt
5151 CIBW_TEST_COMMAND : pytest {project}/test
52- - uses : actions/upload-artifact@master
52+ - uses : actions/upload-artifact@v3
5353 with :
5454 name : dist
5555 path : dist
@@ -58,17 +58,17 @@ jobs:
5858 strategy :
5959 fail-fast : false
6060 matrix :
61- os : [macOS, Ubuntu, Windows ]
61+ os : [macos-11, ubuntu-20.04, windows-2022 ]
6262 major : [3]
6363 minor : [9, 10, 11]
64- runs-on : ${{ matrix.os }}-latest
64+ runs-on : ${{ matrix.os }}
6565 steps :
6666 - uses : actions/checkout@master
6767 - uses : actions/setup-python@master
6868 - 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 '
7070 - run : echo '::add-matcher::.github/problem-matchers/msvc.json'
71- if : matrix.os == 'Windows '
71+ if : matrix.os == 'windows-2022 '
72727373 with :
7474 output-dir : dist
@@ -79,17 +79,17 @@ jobs:
7979 CIBW_BUILD_VERBOSITY : 1
8080 CIBW_BEFORE_TEST : pip install -r {project}/requirements-test.txt
8181 CIBW_TEST_COMMAND : pytest {project}/test
82- - uses : actions/upload-artifact@master
82+ - uses : actions/upload-artifact@v3
8383 with :
8484 name : dist
8585 path : dist
8686 upload :
8787 name : Publish
88- if : github.event_name == 'release' && github.event.action == 'published'
88+ if : github.event_name == 'release'
8989 needs : [tar_gz, whl_lt_3_9, whl_gte_3_9]
90- runs-on : ubuntu-latest
90+ runs-on : ubuntu-20.04
9191 steps :
92- - uses : actions/download-artifact@master
92+ - uses : actions/download-artifact@v3
9393 with :
9494 name : dist
9595 path : dist
0 commit comments