11# This file is managed by 'repo_helper'. Don't edit it directly.
22---
3- name : Linux Tests
3+ name : Linux
44
55on :
66 push :
99
1010jobs :
1111 tests :
12- name : " Python ${{ matrix.python-version }}"
13- runs-on : " ubuntu-18.04"
12+ name : " ubuntu-20.04 / Python ${{ matrix.config.python-version }}"
13+ runs-on : " ubuntu-20.04"
14+ continue-on-error : ${{ matrix.config.experimental }}
1415 env :
15- USING_COVERAGE : ' 3.6,3.7,3.8,3.9,pypy3 '
16+ USING_COVERAGE : ' 3.6,3.7,3.8,3.9,3.10.0-alpha.3,pypy-3.6 '
1617
1718 strategy :
1819 fail-fast : False
1920 matrix :
20- python-version : ["3.6","3.7","3.8","3.9","pypy3"]
21+ config :
22+ - {python-version: "3.6", testenvs: "py36,build", experimental: False}
23+ - {python-version: "3.7", testenvs: "py37,build", experimental: False}
24+ - {python-version: "3.8", testenvs: "py38,build", experimental: False}
25+ - {python-version: "3.9", testenvs: "py39,build", experimental: False}
26+ - {python-version: "3.10.0-alpha.3", testenvs: "py310-dev,build", experimental: True}
27+ - {python-version: "pypy-3.6", testenvs: "pypy3,build", experimental: False}
2128
2229 steps :
2330 - name : Checkout 🛎️
2431 uses : " actions/checkout@v2"
32+
2533 - name : Setup Python 🐍
2634 uses : " actions/setup-python@v2"
2735 with :
28- python-version : " ${{ matrix.python-version }}"
36+ python-version : " ${{ matrix.config.python-version }}"
37+
2938 - name : Install dependencies 🔧
3039 run : |
3140 python -VV
3241 python -m site
3342 python -m pip install --upgrade pip setuptools wheel
34- python -m pip install --upgrade tox tox-gh-actions virtualenv
43+ python -m pip install --upgrade tox virtualenv
3544 python -m pip install --upgrade coverage_pyver_pragma
3645
37- - name : " Run Tests for Python ${{ matrix.python-version }}"
38- run : " python -m tox"
46+ - name : " Run Tests for Python ${{ matrix.config. python-version }}"
47+ run : python -m tox -e "${{ matrix.config.testenvs }} "
3948
4049
41- - name : " Upload Coverage"
50+ - name : " Upload Coverage 🚀 "
4251 uses : actions/upload-artifact@v2
4352 with :
44- name : " coverage-${{ matrix.python-version }}"
53+ name : " coverage-${{ matrix.config. python-version }}"
4554 path : .coverage
4655
4756
4857 Coverage :
4958 needs : tests
50- runs-on : " ubuntu-18 .04"
59+ runs-on : " ubuntu-20 .04"
5160 steps :
5261 - name : Checkout 🛎️
5362 uses : " actions/checkout@v2"
6271 python -m pip install --upgrade pip setuptools wheel
6372 python -m pip install --upgrade coveralls coverage_pyver_pragma
6473
65- - name : " Download Coverage"
74+ - name : " Download Coverage 🪂 "
6675 uses : actions/download-artifact@v2
6776 with :
6877 path : coverage
@@ -71,12 +80,12 @@ jobs:
7180 run : ls -R
7281 working-directory : coverage
7382
74- - name : Combine Coverage
83+ - name : Combine Coverage 👷
7584 run : |
7685 shopt -s globstar
7786 python -m coverage combine coverage/**/.coverage
7887
79- - name : " Upload Combined Coverage Artefact"
88+ - name : " Upload Combined Coverage Artefact 🚀 "
8089 uses : actions/upload-artifact@v2
8190 with :
8291 name : " combined-coverage"
@@ -91,27 +100,31 @@ jobs:
91100 Deploy :
92101 needs : tests
93102
94- runs-on : " ubuntu-18 .04"
103+ runs-on : " ubuntu-20 .04"
95104 steps :
96105 - name : Checkout 🛎️
97106 uses : " actions/checkout@v2"
107+ if : startsWith(github.ref, 'refs/tags/')
98108
99109 - name : Setup Python 🐍
100110 uses : " actions/setup-python@v2"
101111 with :
102112 python-version : 3.8
113+ if : startsWith(github.ref, 'refs/tags/')
103114
104115 - name : Install dependencies 🔧
105116 run : |
106117 python -m pip install --upgrade pip setuptools wheel
107118 python -m pip install --upgrade tox
119+ if : startsWith(github.ref, 'refs/tags/')
108120
109121 - name : Build distributions 📦
110122 run : |
111123 tox -e build
112124
125+ if : startsWith(github.ref, 'refs/tags/')
113126
114- - name : Upload distribution 📦 to PyPI
127+ - name : Upload distribution to PyPI 🚀
115128 if : startsWith(github.ref, 'refs/tags/')
116129 uses : pypa/gh-action-pypi-publish@master
117130 with :
@@ -123,7 +136,8 @@ jobs:
123136
124137 Conda :
125138 needs : deploy
126- runs-on : " ubuntu-18.04"
139+ runs-on : " ubuntu-20.04"
140+ if : startsWith(github.ref, 'refs/tags/') || (startsWith(github.event.head_commit.message, 'Bump version') != true)
127141 steps :
128142 - name : Checkout 🛎️
129143 uses : " actions/checkout@v2"
@@ -147,7 +161,6 @@ jobs:
147161 bash .github/actions_build_conda.sh
148162
149163 - name : Deploy Conda 🚀
150- if : startsWith(github.ref, 'refs/tags/')
151164 run : |
152165 chmod +x .github/actions_deploy_conda.sh
153166 bash .github/actions_deploy_conda.sh
0 commit comments