Skip to content

Commit afb328d

Browse files
Updated files with 'repo_helper'. (#24)
Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com>
1 parent 3eae312 commit afb328d

File tree

5 files changed

+25
-22
lines changed

5 files changed

+25
-22
lines changed

.github/workflows/mypy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
Run:
12-
name: "mypy"
12+
name: "mypy / ${{ matrix.os }}"
1313
runs-on: ${{ matrix.os }}
1414

1515
strategy:

.github/workflows/python_ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
tests:
12-
name: "Python ${{ matrix.config.python-version }}"
12+
name: "windows-2019 / Python ${{ matrix.config.python-version }}"
1313
runs-on: "windows-2019"
1414
continue-on-error: ${{ matrix.config.experimental }}
1515
env:
@@ -41,4 +41,4 @@ jobs:
4141
python -m pip install --upgrade tox virtualenv
4242
4343
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
44-
run: "python -m tox -e ${{ matrix.config.testenvs }}"
44+
run: python -m tox -e "${{ matrix.config.testenvs }}"

.github/workflows/python_ci_linux.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
tests:
12-
name: "Python ${{ matrix.config.python-version }}"
12+
name: "ubuntu-20.04 / Python ${{ matrix.config.python-version }}"
1313
runs-on: "ubuntu-20.04"
1414
continue-on-error: ${{ matrix.config.experimental }}
1515
env:
@@ -43,10 +43,10 @@ jobs:
4343
python -m pip install --upgrade coverage_pyver_pragma
4444
4545
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
46-
run: "python -m tox -e ${{ matrix.config.testenvs }}"
46+
run: python -m tox -e "${{ matrix.config.testenvs }}"
4747

4848

49-
- name: "Upload Coverage"
49+
- name: "Upload Coverage 🚀"
5050
uses: actions/upload-artifact@v2
5151
with:
5252
name: "coverage-${{ matrix.config.python-version }}"
@@ -70,7 +70,7 @@ jobs:
7070
python -m pip install --upgrade pip setuptools wheel
7171
python -m pip install --upgrade coveralls coverage_pyver_pragma
7272
73-
- name: "Download Coverage"
73+
- name: "Download Coverage 🪂"
7474
uses: actions/download-artifact@v2
7575
with:
7676
path: coverage
@@ -79,12 +79,12 @@ jobs:
7979
run: ls -R
8080
working-directory: coverage
8181

82-
- name: Combine Coverage
82+
- name: Combine Coverage 👷
8383
run: |
8484
shopt -s globstar
8585
python -m coverage combine coverage/**/.coverage
8686
87-
- name: "Upload Combined Coverage Artefact"
87+
- name: "Upload Combined Coverage Artefact 🚀"
8888
uses: actions/upload-artifact@v2
8989
with:
9090
name: "combined-coverage"
@@ -103,23 +103,27 @@ jobs:
103103
steps:
104104
- name: Checkout 🛎️
105105
uses: "actions/checkout@v2"
106+
if: startsWith(github.ref, 'refs/tags/')
106107

107108
- name: Setup Python 🐍
108109
uses: "actions/setup-python@v2"
109110
with:
110111
python-version: 3.8
112+
if: startsWith(github.ref, 'refs/tags/')
111113

112114
- name: Install dependencies 🔧
113115
run: |
114116
python -m pip install --upgrade pip setuptools wheel
115117
python -m pip install --upgrade tox
118+
if: startsWith(github.ref, 'refs/tags/')
116119

117120
- name: Build distributions 📦
118121
run: |
119122
tox -e build
120123
124+
if: startsWith(github.ref, 'refs/tags/')
121125

122-
- name: Upload distribution 📦 to PyPI
126+
- name: Upload distribution to PyPI 🚀
123127
if: startsWith(github.ref, 'refs/tags/')
124128
uses: pypa/gh-action-pypi-publish@master
125129
with:
@@ -132,7 +136,7 @@ jobs:
132136
Conda:
133137
needs: deploy
134138
runs-on: "ubuntu-20.04"
135-
if: startsWith(github.ref, 'refs/tags/') || ${{ startsWith(github.event.head_commit.message, 'Bump version') != true }}
139+
if: startsWith(github.ref, 'refs/tags/') || (startsWith(github.event.head_commit.message, 'Bump version') != true)
136140
steps:
137141
- name: Checkout 🛎️
138142
uses: "actions/checkout@v2"

.github/workflows/python_ci_macos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
tests:
12-
name: "Python ${{ matrix.config.python-version }}"
12+
name: "macos-latest / Python ${{ matrix.config.python-version }}"
1313
runs-on: "macos-latest"
1414
continue-on-error: ${{ matrix.config.experimental }}
1515
env:
@@ -42,4 +42,4 @@ jobs:
4242
python -m pip install --upgrade tox virtualenv
4343
4444
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
45-
run: "python -m tox -e ${{ matrix.config.testenvs }}"
45+
run: python -m tox -e "${{ matrix.config.testenvs }}"

tox.ini

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# You may add new sections, but any changes made to the following sections will be lost:
33
# * tox
44
# * envlists
5-
# * gh-actions
65
# * testenv
76
# * testenv:docs
87
# * testenv:build
@@ -28,14 +27,6 @@ test = py36, py37, py38, py39, pypy3
2827
qa = mypy, lint
2928
cov = py36, coverage
3029

31-
[gh-actions]
32-
python =
33-
3.6: py36, build
34-
3.7: py37, build
35-
3.8: py38, build
36-
3.9: py39, build
37-
pypy-3.6: pypy3, build
38-
3930
[testenv]
4031
setenv = PYTHONDEVMODE = 1
4132
deps = -r{toxinidir}/tests/requirements.txt
@@ -148,6 +139,14 @@ package = repo_helper
148139
addopts = --color yes --durations 25
149140
timeout = 300
150141

142+
[gh-actions]
143+
python =
144+
3.6: py36, build
145+
3.7: py37, build
146+
3.8: py38, build
147+
3.9: py39, build
148+
pypy-3.6: pypy3, build
149+
151150
[flake8]
152151
max-line-length = 120
153152
select = E301 E303 E304 E305 E306 E502 W291 W293 W391 E226 E225 E241 E231 W292 E265 E111 E112 E113 E121 E122 E125 E127 E128 E129 E131 E133 E201 E202 E203 E211 E222 E223 E224 E225 E227 E228 E242 E251 E261 E262 E271 E272 E402 E703 E711 E712 E713 E714 E721 W504 E302 YTT101 YTT102 YTT103 YTT201 YTT202 YTT203 YTT204 YTT301 YTT302 YTT303 STRFTIME001 STRFTIME002 SXL001 PT001 PT002 PT003 PT005 PT006 PT007 PT008 PT009 PT010 PT011 PT012 PT013 PT014 PT015 PT016 PT017 PT018 PT019 PT020 PT021 RST201 RST202 RST203 RST204 RST205 RST206 RST207 RST208 RST210 RST211 RST212 RST213 RST214 RST215 RST216 RST217 RST218 RST219 RST299 RST301 RST302 RST303 RST304 RST305 RST306 RST399 RST401 RST499 RST900 RST901 RST902 RST903 Q001 Q002 Q003 A001 A002 A003 TYP001 TYP002 TYP003 TYP004 TYP005 TYP006 Y001,Y002 Y003 Y004 Y005 Y006 Y007 Y008 Y009 Y010 Y011 Y012 Y013 Y014 Y015 Y090 Y091 D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000

0 commit comments

Comments
 (0)