Skip to content

Commit 4662732

Browse files
committed
try fix 2
1 parent 8da7d62 commit 4662732

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 4 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:
7-
runs-on: ubuntu-20.04
9+
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: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ on: push
44

55
jobs:
66
lint:
7-
runs-on: ubuntu-20.04
7+
runs-on: ubuntu-latest
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
@@ -17,14 +17,14 @@ jobs:
1717
run: make lint
1818

1919
pytest:
20-
runs-on: ubuntu-20.04
20+
runs-on: ubuntu-latest
2121
strategy:
2222
matrix:
23-
python-version: [3.8, 3.9, 3.10, 3.11, 3.12, 3.13]
23+
python-version: ['3.8', '3.10', '3.13']
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
@@ -33,11 +33,11 @@ jobs:
3333
run: pytest
3434

3535
coverage:
36-
runs-on: ubuntu-20.04
36+
runs-on: ubuntu-latest
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

0 commit comments

Comments
 (0)