Skip to content

Commit 14bc074

Browse files
authored
Merge branch 'main' into fix-ci
2 parents 2de7088 + 7207843 commit 14bc074

File tree

1 file changed

+23
-28
lines changed

1 file changed

+23
-28
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ jobs:
55
lint:
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v2
8+
- uses: actions/checkout@v5
99
with:
1010
submodules: recursive
11-
- uses: actions/setup-python@v1
11+
- uses: actions/setup-python@v6
1212
with:
13-
python-version: 3.8
13+
python-version: 3.x
1414
- name: Run lint
1515
run: |
1616
python -m pip install tox
@@ -29,10 +29,10 @@ jobs:
2929
run: |
3030
git config --global core.autocrlf false
3131
git config --global core.eol lf
32-
- uses: actions/checkout@v2
32+
- uses: actions/checkout@v5
3333
with:
3434
submodules: recursive
35-
- uses: actions/setup-python@v4
35+
- uses: actions/setup-python@v6
3636
with:
3737
python-version: ${{ matrix.python-version }}
3838
allow-prereleases: true
@@ -44,16 +44,16 @@ jobs:
4444
package-sdist:
4545
runs-on: ubuntu-latest
4646
steps:
47-
- uses: actions/checkout@v2
47+
- uses: actions/checkout@v5
4848
with:
4949
submodules: recursive
50-
- uses: actions/setup-python@v1
50+
- uses: actions/setup-python@v6
5151
with:
5252
python-version: 3.x
5353
- name: Build source package
5454
run: pipx run build --sdist
5555
- name: Upload source package
56-
uses: actions/upload-artifact@v1
56+
uses: actions/upload-artifact@v5
5757
with:
5858
name: sdist
5959
path: dist/
@@ -62,20 +62,15 @@ jobs:
6262
runs-on: ${{ matrix.os }}
6363
strategy:
6464
matrix:
65-
include:
66-
- name: manylinux
67-
os: ubuntu-latest
68-
- name: macos
69-
os: macos-latest
70-
- name: win
71-
os: windows-latest
65+
os: [ubuntu-latest, macos-latest, windows-latest]
7266

7367
steps:
74-
- uses: actions/checkout@v2
68+
- uses: actions/checkout@v5
7569
with:
7670
submodules: recursive
77-
- uses: actions/setup-python@v2
78-
71+
- uses: actions/setup-python@v6
72+
with:
73+
python-version: 3.x
7974
- name: Install cibuildwheel
8075
run: python -m pip install cibuildwheel
8176
# - name: Install Visual C++ for Python 2.7
@@ -100,31 +95,31 @@ jobs:
10095
CIBW_BUILD: cp38-${{ matrix.name }}* pp*-${{ matrix.name }}*
10196
CIBW_ARCHS_LINUX: auto aarch64
10297
CIBW_BEFORE_BUILD_LINUX: yum install -y libffi-devel
103-
- uses: actions/upload-artifact@v2
98+
- uses: actions/upload-artifact@v4
10499
with:
105-
name: wheels-${{ matrix.name }}
100+
name: wheels-${{ matrix.os }}
106101
path: ./wheelhouse/*.whl
107102

108103
publish:
109104
runs-on: ubuntu-latest
110105
needs: [lint, test, package-sdist, package-wheel]
111106
steps:
112-
- uses: actions/checkout@v2
113-
- uses: actions/download-artifact@v1
107+
- uses: actions/checkout@v5
108+
- uses: actions/download-artifact@v6
114109
with:
115110
name: sdist
116111
path: dist/
117-
- uses: actions/download-artifact@v1
112+
- uses: actions/download-artifact@v6
118113
with:
119-
name: wheels-win
114+
name: wheels-windows-latest
120115
path: dist/
121-
- uses: actions/download-artifact@v1
116+
- uses: actions/download-artifact@v6
122117
with:
123-
name: wheels-macos
118+
name: wheels-macos-latest
124119
path: dist/
125-
- uses: actions/download-artifact@v1
120+
- uses: actions/download-artifact@v6
126121
with:
127-
name: wheels-manylinux
122+
name: wheels-ubuntu-latest
128123
path: dist/
129124
- name: Publish to PyPI
130125
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')

0 commit comments

Comments
 (0)