9
9
10
10
tests :
11
11
name : Run tests
12
- runs-on : ubuntu-18 .04
12
+ runs-on : ubuntu-20 .04
13
13
steps :
14
14
- uses : actions/checkout@v2
15
15
- uses : actions/setup-python@v2
16
16
with :
17
- python-version : 3.9
17
+ python-version : 3.10
18
18
- run : pip install tox
19
19
- run : tox
20
20
env :
21
- TOXENV : 3.9
21
+ TOXENV : 3.10
22
22
23
23
linters :
24
24
name : Run linters
25
- runs-on : ubuntu-18 .04
25
+ runs-on : ubuntu-20 .04
26
26
strategy :
27
27
matrix :
28
28
toxenv : [flake8, pydocstyle, mypy, pylint]
29
29
steps :
30
30
- uses : actions/checkout@v2
31
31
- uses : actions/setup-python@v2
32
32
with :
33
- python-version : 3.9
33
+ python-version : 3.10
34
34
- run : pip install tox
35
35
- run : tox
36
36
env :
@@ -39,12 +39,12 @@ jobs:
39
39
build-sdist :
40
40
name : Build source tarball
41
41
needs : [tests, linters]
42
- runs-on : ubuntu-18 .04
42
+ runs-on : ubuntu-20 .04
43
43
steps :
44
44
- uses : actions/checkout@v2
45
45
- uses : actions/setup-python@v2
46
46
with :
47
- python-version : 3.9
47
+ python-version : 3.10
48
48
- run : python setup.py sdist
49
49
- uses : actions/upload-artifact@v2
50
50
with :
@@ -56,15 +56,15 @@ jobs:
56
56
runs-on : ${{ matrix.os }}
57
57
strategy :
58
58
matrix :
59
- os : [ubuntu-18 .04, windows-latest, macos-latest ]
59
+ os : [ubuntu-20 .04, windows-2019, macOS-10.15 ]
60
60
env :
61
61
CIBW_SKIP : cp27-win*
62
62
steps :
63
63
- uses : actions/checkout@v2
64
64
- uses : actions/setup-python@v2
65
65
with :
66
- python-version : 3.9
67
- - run : pip install cibuildwheel==1.8.0
66
+ python-version : 3.10
67
+ - run : pip install cibuildwheel==2.1.3
68
68
- run : cibuildwheel --output-dir wheelhouse
69
69
- uses : actions/upload-artifact@v2
70
70
with :
@@ -73,15 +73,15 @@ jobs:
73
73
build-wheels-linux-aarch64 :
74
74
name : Build wheels (ubuntu-latest-aarch64)
75
75
needs : [tests, linters]
76
- runs-on : ubuntu-18 .04
76
+ runs-on : ubuntu-20 .04
77
77
steps :
78
78
- uses : actions/checkout@v2
79
79
- name : Set up QEMU
80
80
uses : docker/setup-qemu-action@v1
81
81
- uses : actions/setup-python@v2
82
82
with :
83
- python-version : 3.9
84
- - run : pip install cibuildwheel==1.8.0
83
+ python-version : 3.10
84
+ - run : pip install cibuildwheel==2.1.3
85
85
- run : cibuildwheel --archs aarch64 --output-dir wheelhouse
86
86
- uses : actions/upload-artifact@v2
87
87
with :
90
90
publish :
91
91
name : Publish on PyPI
92
92
needs : [build-sdist, build-wheels, build-wheels-linux-aarch64]
93
- runs-on : ubuntu-18 .04
93
+ runs-on : ubuntu-20 .04
94
94
steps :
95
95
- uses : actions/download-artifact@v2
96
96
with :
@@ -99,26 +99,27 @@ jobs:
99
99
- uses : pypa/gh-action-pypi-publish@master
100
100
with :
101
101
user : __token__
102
- password : ${{ secrets.PYPI_API_TOKEN }}
102
+ password : ${{ secrets.TEST_PYPI_API_TOKEN }}
103
+ repository_url : https://test.pypi.org/legacy/
103
104
104
- publish-docs :
105
- name : Publish docs
106
- needs : [publish]
107
- runs-on : ubuntu-18.04
108
- steps :
109
- - uses : actions/checkout@v2
110
- - uses : actions/setup-python@v2
111
- with :
112
- python-version : 3.9
113
- - run : pip install -r requirements-doc.txt
114
- - run : pip install awscli
115
- - run : pip install -e .
116
- - run : (cd docs && make clean html)
117
- - run : |
118
- aws s3 sync docs/_build/html s3://python-dependency-injector-docs --delete
119
- aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_CLOUDFRONT_DISTRIBUTION_ID }} --path "/*" > /dev/null
120
- echo "Cache invalidation triggered"
121
- env:
122
- AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
123
- AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
124
- AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
105
+ # publish-docs:
106
+ # name: Publish docs
107
+ # needs: [publish]
108
+ # runs-on: ubuntu-18.04
109
+ # steps:
110
+ # - uses: actions/checkout@v2
111
+ # - uses: actions/setup-python@v2
112
+ # with:
113
+ # python-version: 3.10
114
+ # - run: pip install -r requirements-doc.txt
115
+ # - run: pip install awscli
116
+ # - run: pip install -e .
117
+ # - run: (cd docs && make clean html)
118
+ # - run: |
119
+ # aws s3 sync docs/_build/html s3://python-dependency-injector-docs --delete
120
+ # aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_CLOUDFRONT_DISTRIBUTION_ID }} --path "/*" > /dev/null
121
+ # echo "Cache invalidation triggered"
122
+ # env:
123
+ # AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
124
+ # AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
125
+ # AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
0 commit comments