Skip to content

Commit ee8a420

Browse files
committed
Adapt GitHub action
1 parent 071a34e commit ee8a420

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,58 +5,58 @@ on:
55
branches:
66
- main
77
tags:
8-
- "*"
8+
- '*'
99

1010
pull_request:
1111
branches:
1212
- main
1313

1414
jobs:
1515
build:
16-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-20.04
1717

1818
strategy:
1919
matrix:
20-
python: [3.6, 3.7, 3.8, 3.9, pypy]
20+
python: ['3.6', '3.7', '3.8', '3.9', '3.10', 'pypy3.9']
2121

2222
steps:
23-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v3
2424
with:
2525
fetch-depth: 0
2626

2727
- name: Set up Python ${{ matrix.python }}
28-
uses: actions/setup-python@v3
28+
uses: actions/setup-python@v4
2929
with:
3030
python-version: ${{ matrix.python }}
3131

3232
- name: Install dependencies
3333
run: |
3434
python -m pip install --upgrade pip setuptools
35-
python -m pip install tox
35+
python -m pip install 'tox>=3.28,<4.0'
3636
3737
- name: Test with Python 3.6
3838
if: matrix.python == '3.6'
39-
run: tox -e "py36-pytest{4,50,51,52,53,54,60,61,62,70}"
39+
run: tox -e 'py36-pytest{4,50,51,52,53,54,60,61,62,70}'
4040

4141
- name: Test with Python 3.7
4242
if: matrix.python == '3.7'
43-
run: tox -e "py37-pytest{4,50,51,52,53,54,60,61,62,70}"
43+
run: tox -e 'py37-pytest{4,50,51,52,53,54,60,61,62,70}'
4444

4545
- name: Test with Python 3.8
4646
if: matrix.python == '3.8'
47-
run: tox -e "py38-pytest{4,50,51,52,53,54,60,61,62,70}"
47+
run: tox -e 'py38-pytest{4,50,51,52,53,54,60,61,62,70}'
4848

4949
- name: Test with Python 3.9
5050
if: matrix.python == '3.9'
51-
run: tox -e "py39-pytest{4,50,51,52,53,54,60,61,62,70}"
51+
run: tox -e 'py39-pytest{4,50,51,52,53,54,60,61,62,70}'
5252

5353
- name: Test with Python 3.10
5454
if: matrix.python == '3.10'
55-
run: tox -e "py310-pytest{62,70}"
55+
run: tox -e 'py310-pytest{62,70}'
5656

57-
- name: Test with PyPy
58-
if: matrix.python == 'pypy'
59-
run: tox -e "pypy-pytest{4,50,51,52,53,54,60,61,62,70}"
57+
- name: Test with PyPy 3.9
58+
if: matrix.python == 'pypy3.9'
59+
run: tox -e 'pypy39-pytest{4,50,51,52,53,54,60,61,62,70}'
6060

6161
- name: Linting with Flake8
6262
if: matrix.python == '3.9'
@@ -70,13 +70,13 @@ jobs:
7070
runs-on: ubuntu-latest
7171

7272
steps:
73-
- uses: actions/checkout@v2
73+
- uses: actions/checkout@v3
7474
with:
7575
fetch-depth: 0
7676

77-
- uses: actions/setup-python@v3
77+
- uses: actions/setup-python@v4
7878
with:
79-
python-version: "3.9"
79+
python-version: '3.9'
8080

8181
- name: Install dependencies
8282
run: |
@@ -87,7 +87,7 @@ jobs:
8787
run: python setup.py sdist bdist_wheel
8888

8989
- name: Publish package
90-
uses: pypa/gh-action-pypi-publish@v1
90+
uses: pypa/gh-action-pypi-publish@release/v1
9191
with:
9292
user: __token__
9393
password: ${{ secrets.pypi_token }}

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py{36,37,38,39,py}-pytest{4,50,51,52,53,54,60,61,62,70},py{310}-pytest{62,70},flake8
2+
envlist = py{36,37,38,39,py39}-pytest{4,50,51,52,53,54,60,61,62,70},py{310}-pytest{62,70},flake8
33

44
[testenv]
55
basepython =
@@ -8,7 +8,7 @@ basepython =
88
py38: python3.8
99
py39: python3.9
1010
py310: python3.10
11-
pypy: pypy3.9
11+
pypy39: pypy3.9
1212
deps =
1313
pytest4: pytest>=4.6,<5.0
1414
pytest50: pytest>=5.0,<5.2

0 commit comments

Comments
 (0)