5
5
branches :
6
6
- main
7
7
tags :
8
- - " * "
8
+ - ' * '
9
9
10
10
pull_request :
11
11
branches :
12
12
- main
13
13
14
14
jobs :
15
15
build :
16
- runs-on : ubuntu-latest
16
+ runs-on : ubuntu-20.04
17
17
18
18
strategy :
19
19
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' ]
21
21
22
22
steps :
23
- - uses : actions/checkout@v2
23
+ - uses : actions/checkout@v3
24
24
with :
25
25
fetch-depth : 0
26
26
27
27
- name : Set up Python ${{ matrix.python }}
28
- uses : actions/setup-python@v3
28
+ uses : actions/setup-python@v4
29
29
with :
30
30
python-version : ${{ matrix.python }}
31
31
32
32
- name : Install dependencies
33
33
run : |
34
34
python -m pip install --upgrade pip setuptools
35
- python -m pip install tox
35
+ python -m pip install ' tox>=3.28,<4.0'
36
36
37
37
- name : Test with Python 3.6
38
38
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}'
40
40
41
41
- name : Test with Python 3.7
42
42
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}'
44
44
45
45
- name : Test with Python 3.8
46
46
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}'
48
48
49
49
- name : Test with Python 3.9
50
50
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}'
52
52
53
53
- name : Test with Python 3.10
54
54
if : matrix.python == '3.10'
55
- run : tox -e " py310-pytest{62,70}"
55
+ run : tox -e ' py310-pytest{62,70}'
56
56
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}'
60
60
61
61
- name : Linting with Flake8
62
62
if : matrix.python == '3.9'
@@ -70,13 +70,13 @@ jobs:
70
70
runs-on : ubuntu-latest
71
71
72
72
steps :
73
- - uses : actions/checkout@v2
73
+ - uses : actions/checkout@v3
74
74
with :
75
75
fetch-depth : 0
76
76
77
- - uses : actions/setup-python@v3
77
+ - uses : actions/setup-python@v4
78
78
with :
79
- python-version : " 3.9"
79
+ python-version : ' 3.9'
80
80
81
81
- name : Install dependencies
82
82
run : |
87
87
run : python setup.py sdist bdist_wheel
88
88
89
89
- name : Publish package
90
- uses : pypa/gh-action-pypi-publish@v1
90
+ uses : pypa/gh-action-pypi-publish@release/ v1
91
91
with :
92
92
user : __token__
93
93
password : ${{ secrets.pypi_token }}
0 commit comments