Skip to content

Commit b8d9340

Browse files
committed
Update publishing job config for testing
1 parent 1b2c1aa commit b8d9340

File tree

1 file changed

+37
-36
lines changed

1 file changed

+37
-36
lines changed

.github/workflows/publishing.yml

Lines changed: 37 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,28 @@ jobs:
99

1010
tests:
1111
name: Run tests
12-
runs-on: ubuntu-18.04
12+
runs-on: ubuntu-20.04
1313
steps:
1414
- uses: actions/checkout@v2
1515
- uses: actions/setup-python@v2
1616
with:
17-
python-version: 3.9
17+
python-version: 3.10
1818
- run: pip install tox
1919
- run: tox
2020
env:
21-
TOXENV: 3.9
21+
TOXENV: 3.10
2222

2323
linters:
2424
name: Run linters
25-
runs-on: ubuntu-18.04
25+
runs-on: ubuntu-20.04
2626
strategy:
2727
matrix:
2828
toxenv: [flake8, pydocstyle, mypy, pylint]
2929
steps:
3030
- uses: actions/checkout@v2
3131
- uses: actions/setup-python@v2
3232
with:
33-
python-version: 3.9
33+
python-version: 3.10
3434
- run: pip install tox
3535
- run: tox
3636
env:
@@ -39,12 +39,12 @@ jobs:
3939
build-sdist:
4040
name: Build source tarball
4141
needs: [tests, linters]
42-
runs-on: ubuntu-18.04
42+
runs-on: ubuntu-20.04
4343
steps:
4444
- uses: actions/checkout@v2
4545
- uses: actions/setup-python@v2
4646
with:
47-
python-version: 3.9
47+
python-version: 3.10
4848
- run: python setup.py sdist
4949
- uses: actions/upload-artifact@v2
5050
with:
@@ -56,15 +56,15 @@ jobs:
5656
runs-on: ${{ matrix.os }}
5757
strategy:
5858
matrix:
59-
os: [ubuntu-18.04, windows-latest, macos-latest]
59+
os: [ubuntu-20.04, windows-2019, macOS-10.15]
6060
env:
6161
CIBW_SKIP: cp27-win*
6262
steps:
6363
- uses: actions/checkout@v2
6464
- uses: actions/setup-python@v2
6565
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
6868
- run: cibuildwheel --output-dir wheelhouse
6969
- uses: actions/upload-artifact@v2
7070
with:
@@ -73,15 +73,15 @@ jobs:
7373
build-wheels-linux-aarch64:
7474
name: Build wheels (ubuntu-latest-aarch64)
7575
needs: [tests, linters]
76-
runs-on: ubuntu-18.04
76+
runs-on: ubuntu-20.04
7777
steps:
7878
- uses: actions/checkout@v2
7979
- name: Set up QEMU
8080
uses: docker/setup-qemu-action@v1
8181
- uses: actions/setup-python@v2
8282
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
8585
- run: cibuildwheel --archs aarch64 --output-dir wheelhouse
8686
- uses: actions/upload-artifact@v2
8787
with:
@@ -90,7 +90,7 @@ jobs:
9090
publish:
9191
name: Publish on PyPI
9292
needs: [build-sdist, build-wheels, build-wheels-linux-aarch64]
93-
runs-on: ubuntu-18.04
93+
runs-on: ubuntu-20.04
9494
steps:
9595
- uses: actions/download-artifact@v2
9696
with:
@@ -99,26 +99,27 @@ jobs:
9999
- uses: pypa/gh-action-pypi-publish@master
100100
with:
101101
user: __token__
102-
password: ${{ secrets.PYPI_API_TOKEN }}
102+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
103+
repository_url: https://test.pypi.org/legacy/
103104

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

Comments
 (0)