Skip to content

Commit 6f3c1fc

Browse files
authored
Fix GH actions (#123)
* try fix * try fix 2 * matrix python * remove 3.7 * remove 3.12 * remove 3.10 * token codecov
1 parent a08f78f commit 6f3c1fc

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
name: release
22

3-
on: push
3+
on:
4+
release:
5+
types: [published]
46

57
jobs:
68
publish-pypi:
79
runs-on: ubuntu-latest
810
steps:
911
- uses: actions/checkout@master
1012
- name: Set up Python 3.8
11-
uses: actions/setup-python@v2.2.1
13+
uses: actions/setup-python@v4.7.0
1214
with:
1315
python-version: 3.8
1416
- name: Install dependencies
1517
run: pip install -qU setuptools wheel twine
1618
- name: Generating distribution archives
1719
run: python setup.py sdist bdist_wheel
1820
- name: Publish distribution 📦 to PyPI
19-
if: startsWith(github.event.ref, 'refs/tags')
2021
uses: pypa/gh-action-pypi-publish@master
2122
with:
2223
user: __token__

.github/workflows/test.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
steps:
99
- uses: actions/checkout@v2
1010
- name: Set up Python
11-
uses: actions/setup-python@v2.2.1
11+
uses: actions/setup-python@v4.7.0
1212
with:
1313
python-version: 3.8
1414
- name: Install dependencies
@@ -20,11 +20,11 @@ jobs:
2020
runs-on: ubuntu-latest
2121
strategy:
2222
matrix:
23-
python-version: [3.7, 3.8]
23+
python-version: ['3.8', '3.9', '3.10']
2424
steps:
2525
- uses: actions/checkout@v2
2626
- name: Set up Python ${{ matrix.python-version }}
27-
uses: actions/setup-python@v2.2.1
27+
uses: actions/setup-python@v4.7.0
2828
with:
2929
python-version: ${{ matrix.python-version }}
3030
- name: Install dependencies
@@ -37,7 +37,7 @@ jobs:
3737
steps:
3838
- uses: actions/checkout@master
3939
- name: Setup Python
40-
uses: actions/setup-python@v2.2.1
40+
uses: actions/setup-python@v4.7.0
4141
with:
4242
python-version: 3.8
4343
- name: Install dependencies
@@ -47,6 +47,7 @@ jobs:
4747
- name: Upload coverage to Codecov
4848
uses: codecov/codecov-action@v1
4949
with:
50+
token: ${{ secrets.CODECOV_TOKEN }}
5051
file: ./coverage.xml
5152
flags: unittests
5253
name: codecov-umbrella

0 commit comments

Comments
 (0)