1
1
name : Publishing
2
2
3
3
on :
4
+ workflow_dispatch :
4
5
push :
5
6
tags :
6
7
- ' *'
9
10
10
11
tests :
11
12
name : Run tests
12
- runs-on : ubuntu-20 .04
13
+ runs-on : ubuntu-22 .04
13
14
steps :
14
- - uses : actions/checkout@v2
15
- - uses : actions/setup-python@v2
15
+ - uses : actions/checkout@v3
16
+ - uses : actions/setup-python@v4
16
17
with :
17
- python-version : " 3.10 "
18
+ python-version : 3.11
18
19
- run : pip install tox
19
20
- run : tox
20
21
env :
21
- TOXENV : " 3.10 "
22
+ TOXENV : 3.11
22
23
23
24
linters :
24
25
name : Run linters
25
- runs-on : ubuntu-20 .04
26
+ runs-on : ubuntu-22 .04
26
27
strategy :
27
28
matrix :
28
29
toxenv : [flake8, pydocstyle, mypy, pylint]
29
30
steps :
30
- - uses : actions/checkout@v2
31
- - uses : actions/setup-python@v2
31
+ - uses : actions/checkout@v3
32
+ - uses : actions/setup-python@v4
32
33
with :
33
- python-version : " 3.10 "
34
+ python-version : 3.11
34
35
- run : pip install tox
35
36
- run : tox
36
37
env :
@@ -39,14 +40,14 @@ jobs:
39
40
build-sdist :
40
41
name : Build source tarball
41
42
needs : [tests, linters]
42
- runs-on : ubuntu-20 .04
43
+ runs-on : ubuntu-22 .04
43
44
steps :
44
- - uses : actions/checkout@v2
45
- - uses : actions/setup-python@v2
45
+ - uses : actions/checkout@v3
46
+ - uses : actions/setup-python@v4
46
47
with :
47
- python-version : " 3.10 "
48
+ python-version : 3.11
48
49
- run : python setup.py sdist
49
- - uses : actions/upload-artifact@v2
50
+ - uses : actions/upload-artifact@v3
50
51
with :
51
52
path : ./dist/*
52
53
@@ -56,63 +57,60 @@ jobs:
56
57
runs-on : ${{ matrix.os }}
57
58
strategy :
58
59
matrix :
59
- os : [ubuntu-20 .04, windows-2019, macOS-10.15 ]
60
+ os : [ubuntu-22 .04, windows-2019, macos-11 ]
60
61
env :
61
62
CIBW_SKIP : cp27-win*
62
63
steps :
63
- - uses : actions/checkout@v2
64
- - uses : actions/setup-python@v2
65
- with :
66
- python-version : " 3.10"
67
- - run : pip install cibuildwheel==2.1.3
68
- - run : cibuildwheel --output-dir wheelhouse
69
- - uses : actions/upload-artifact@v2
64
+ - uses : actions/checkout@v3
65
+ - name : Build wheels
66
+
67
+ - uses : actions/upload-artifact@v3
70
68
with :
71
69
path : ./wheelhouse/*.whl
72
70
73
71
build-wheels-linux-aarch64 :
74
- name : Build wheels (ubuntu-latest -aarch64)
72
+ name : Build wheels (ubuntu-22.04 -aarch64)
75
73
needs : [tests, linters]
76
- runs-on : ubuntu-20 .04
74
+ runs-on : ubuntu-22 .04
77
75
steps :
78
- - uses : actions/checkout@v2
76
+ - uses : actions/checkout@v3
79
77
- name : Set up QEMU
80
- uses : docker/setup-qemu-action@v1
81
- - uses : actions /setup-python @v2
82
- with :
83
- python-version : " 3.10 "
84
- - run : pip install cibuildwheel==2.1.3
85
- - run : cibuildwheel --archs aarch64 --output-dir wheelhouse
86
- - uses : actions/upload-artifact@v2
78
+ if : runner.os == 'Linux'
79
+ uses : docker /setup-qemu-action @v2
80
+ - name : Build wheels
81
+
82
+ env :
83
+ CIBW_ARCHS_LINUX : aarch64
84
+ - uses : actions/upload-artifact@v3
87
85
with :
88
86
path : ./wheelhouse/*.whl
89
87
90
88
publish :
91
89
name : Publish on PyPI
92
90
needs : [build-sdist, build-wheels, build-wheels-linux-aarch64]
93
- runs-on : ubuntu-20 .04
91
+ runs-on : ubuntu-22 .04
94
92
steps :
95
- - uses : actions/download-artifact@v2
93
+ - uses : actions/download-artifact@v3
96
94
with :
97
95
name : artifact
98
96
path : dist
99
- - uses : pypa/gh-action-pypi-publish@master
97
+ - uses : pypa/gh-action-pypi-publish@release/v1
100
98
with :
101
99
user : __token__
102
100
password : ${{ secrets.PYPI_API_TOKEN }}
103
- # For publishing to Test PyPI, uncomment next two lines:
104
- # password: ${{ secrets.TEST_PYPI_API_TOKEN }}
105
- # repository_url: https://test.pypi.org/legacy/
101
+ # For publishing to Test PyPI, uncomment next two lines:
102
+ # password: ${{ secrets.TEST_PYPI_API_TOKEN }}
103
+ # repository_url: https://test.pypi.org/legacy/
106
104
107
105
publish-docs :
108
106
name : Publish docs
109
107
needs : [publish]
110
- runs-on : ubuntu-18 .04
108
+ runs-on : ubuntu-22 .04
111
109
steps :
112
- - uses : actions/checkout@v2
113
- - uses : actions/setup-python@v2
110
+ - uses : actions/checkout@v3
111
+ - uses : actions/setup-python@v4
114
112
with :
115
- python-version : " 3.10 "
113
+ python-version : 3.11
116
114
- run : pip install -r requirements-doc.txt
117
115
- run : pip install awscli
118
116
- run : pip install -e .
0 commit comments