Skip to content

Commit 6571743

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

File tree

4 files changed

+22
-20
lines changed

4 files changed

+22
-20
lines changed

.github/workflows/python_ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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 }}"

.github/workflows/python_ci_linux.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ jobs:
4444
python -m pip install --upgrade coverage_pyver_pragma
4545
4646
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
47-
run: "python -m tox -e ${{ matrix.config.testenvs }}"
47+
run: python -m tox -e "${{ matrix.config.testenvs }}"
4848

4949

50-
- name: "Upload Coverage"
50+
- name: "Upload Coverage 🚀"
5151
uses: actions/upload-artifact@v2
5252
with:
5353
name: "coverage-${{ matrix.config.python-version }}"
@@ -71,7 +71,7 @@ jobs:
7171
python -m pip install --upgrade pip setuptools wheel
7272
python -m pip install --upgrade coveralls coverage_pyver_pragma
7373
74-
- name: "Download Coverage"
74+
- name: "Download Coverage 🪂"
7575
uses: actions/download-artifact@v2
7676
with:
7777
path: coverage
@@ -80,12 +80,12 @@ jobs:
8080
run: ls -R
8181
working-directory: coverage
8282

83-
- name: Combine Coverage
83+
- name: Combine Coverage 👷
8484
run: |
8585
shopt -s globstar
8686
python -m coverage combine coverage/**/.coverage
8787
88-
- name: "Upload Combined Coverage Artefact"
88+
- name: "Upload Combined Coverage Artefact 🚀"
8989
uses: actions/upload-artifact@v2
9090
with:
9191
name: "combined-coverage"
@@ -99,29 +99,32 @@ jobs:
9999
100100
Deploy:
101101
needs: tests
102-
if: startsWith(github.ref, 'refs/tags/')
103102

104103
runs-on: "ubuntu-20.04"
105104
steps:
106105
- name: Checkout 🛎️
107106
uses: "actions/checkout@v2"
107+
if: startsWith(github.ref, 'refs/tags/')
108108

109109
- name: Setup Python 🐍
110110
uses: "actions/setup-python@v2"
111111
with:
112112
python-version: 3.8
113+
if: startsWith(github.ref, 'refs/tags/')
113114

114115
- name: Install dependencies 🔧
115116
run: |
116117
python -m pip install --upgrade pip setuptools wheel
117118
python -m pip install --upgrade tox
119+
if: startsWith(github.ref, 'refs/tags/')
118120

119121
- name: Build distributions 📦
120122
run: |
121123
tox -e build
122124
125+
if: startsWith(github.ref, 'refs/tags/')
123126

124-
- name: Upload distribution 📦 to PyPI
127+
- name: Upload distribution to PyPI 🚀
125128
if: startsWith(github.ref, 'refs/tags/')
126129
uses: pypa/gh-action-pypi-publish@master
127130
with:
@@ -134,7 +137,7 @@ jobs:
134137
Conda:
135138
needs: deploy
136139
runs-on: "ubuntu-20.04"
137-
if: startsWith(github.ref, 'refs/tags/') || ${{ startsWith(github.event.head_commit.message, 'Bump version') != true }}
140+
if: startsWith(github.ref, 'refs/tags/') || (startsWith(github.event.head_commit.message, 'Bump version') != true)
138141
steps:
139142
- name: Checkout 🛎️
140143
uses: "actions/checkout@v2"

.github/workflows/python_ci_macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ jobs:
4343
python -m pip install --upgrade tox virtualenv
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 }}"

tox.ini

Lines changed: 9 additions & 10 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:docs
76
# * testenv:build
87
# * testenv:lint
@@ -27,15 +26,6 @@ test = py36, py37, py38, py39, py310-dev, pypy3
2726
qa = mypy, lint
2827
cov = py36, coverage
2928

30-
[gh-actions]
31-
python =
32-
3.6: py36, build
33-
3.7: py37, build
34-
3.8: py38, build
35-
3.9: py39, build
36-
3.10.0-alpha.3: py310-dev, build
37-
pypy-3.6: pypy3, build
38-
3929
[testenv:docs]
4030
setenv = SHOW_TODOS = 1
4131
basepython = python3.8
@@ -140,6 +130,15 @@ package = domdf_python_tools
140130
addopts = --color yes --durations 25
141131
timeout = 300
142132

133+
[gh-actions]
134+
python =
135+
3.6: py36, build
136+
3.7: py37, build
137+
3.8: py38, build
138+
3.9: py39, build
139+
3.10.0-alpha.3: py310-dev, build
140+
pypy-3.6: pypy3, build
141+
143142
[flake8]
144143
max-line-length = 120
145144
select = E111 E112 E113 E121 E122 E125 E127 E128 E129 E131 E133 E201 E202 E203 E211 E222 E223 E224 E225 E225 E226 E227 E228 E231 E241 E242 E251 E261 E262 E265 E271 E272 E301 E302 E303 E304 E305 E306 E402 E502 E703 E711 E712 E713 E714 E721 W291 W292 W293 W391 W504 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)