8
8
tags :
9
9
- ' *'
10
10
11
- jobs :
12
- cleanup-runs :
13
- runs-on : ubuntu-latest
14
- steps :
15
- - uses : rokroskar/workflow-run-cleanup-action@master
16
- env :
17
- GITHUB_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
18
- if : " !startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master'"
11
+ # https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
12
+ # Only cancels-in-progress on PRs (head_ref only defined in PR, fallback run_id always unique)
13
+ concurrency :
14
+ group : ${{ github.head_ref || github.run_id }}
15
+ cancel-in-progress : true
19
16
17
+ jobs :
20
18
build :
21
19
runs-on : ${{ matrix.os }}
22
20
defaults :
@@ -25,17 +23,17 @@ jobs:
25
23
strategy :
26
24
fail-fast : false
27
25
matrix :
28
- os : [ ubuntu-20.04, macos-11 , windows-2019 ]
29
- python-version : [ 3.7, 3. 9, 3.8, "3.10", "3.11", "3.12" ]
26
+ os : [ ubuntu-20.04, macos-12 , windows-2019 ]
27
+ python-version : [ 3.9, 3.8, "3.10", "3.11", "3.12" ]
30
28
31
29
env :
32
30
PYTHON_VERSION : ${{ matrix.python-version }}
33
31
34
32
steps :
35
- - uses : actions/checkout@v2
33
+ - uses : actions/checkout@v4
36
34
with :
37
35
submodules : recursive
38
- - uses : conda-incubator/setup-miniconda@v2
36
+ - uses : conda-incubator/setup-miniconda@v3
39
37
with :
40
38
auto-update-conda : true
41
39
python-version : ${{ matrix.python-version }}
@@ -70,13 +68,13 @@ jobs:
70
68
strategy :
71
69
fail-fast : false
72
70
matrix :
73
- os : [ ubuntu-20.04, macos-11 , windows-2019 ]
71
+ os : [ ubuntu-20.04, macos-12 , windows-2019 ]
74
72
python-version : [ 3.7, 3.9, "3.10", "3.11", "3.12" ]
75
73
include :
76
74
- os : ubuntu-20.04
77
75
python-version : 3.8
78
76
single_action_config : " True"
79
- - os : macos-11
77
+ - os : macos-12
80
78
python-version : 3.8
81
79
- os : windows-2019
82
80
python-version : 3.8
@@ -91,10 +89,10 @@ jobs:
91
89
92
90
steps :
93
91
94
- - uses : actions/checkout@v2
92
+ - uses : actions/checkout@v4
95
93
with :
96
94
submodules : recursive
97
- - uses : actions/setup-python@v2
95
+ - uses : actions/setup-python@v5
98
96
with :
99
97
python-version : ${{ matrix.python-version }}
100
98
- name : Set Additional Envs
@@ -109,7 +107,7 @@ jobs:
109
107
env :
110
108
CIBW_BUILD : " cp3${{env.PYTHON_SUBVERSION}}-*"
111
109
CIBW_SKIP : " *-win32 *-manylinux_i686 *-musllinux*"
112
- uses : joerick /cibuildwheel@v2.16.5
110
+ uses : pypa /cibuildwheel@v2.19.1
113
111
114
112
- name : Build source
115
113
if : ${{env.DEPLOY == 'True' && env.SINGLE_ACTION_CONFIG == 'True'}}
@@ -126,7 +124,7 @@ jobs:
126
124
127
125
- name : Upload artifacts to github
128
126
if : ${{env.DEPLOY == 'True'}}
129
- uses : actions/upload-artifact@v1
127
+ uses : actions/upload-artifact@v4
130
128
with :
131
- name : wheels
132
- path : ./wheelhouse
129
+ name : wheels-${{ matrix.os }}-${{ matrix.python-version }}
130
+ path : ./wheelhouse
0 commit comments