@@ -29,15 +29,15 @@ jobs:
29
29
30
30
steps :
31
31
- name : Git clone
32
- uses : actions/checkout@v2
32
+ uses : actions/checkout@v4
33
33
34
34
- name : Set up Python ${{ matrix.python-version }}
35
- uses : actions/setup-python@v2
35
+ uses : actions/setup-python@v4
36
36
with :
37
37
python-version : " ${{ matrix.python-version }}"
38
38
39
39
- name : Pip cache
40
- uses : actions/cache@v2
40
+ uses : actions/cache@v3
41
41
with :
42
42
path : ~/.cache/pip
43
43
key : ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.py') }}
@@ -49,23 +49,24 @@ jobs:
49
49
run : |
50
50
python -m pip install -U pip
51
51
python -m pip install -U setuptools wheel
52
- python -m pip install -U pytest coverage coveralls
52
+ python -m pip install -U pytest coverage
53
53
python -m pip install -e .
54
54
55
55
- name : Run tests
56
- run : coverage run -m pytest tests
56
+ run : |
57
+ coverage run -m pytest tests
57
58
58
59
- name : Check test coverage
59
- run : coverage report -m --fail-under=${{ (matrix.python-version == 'pypy-3.10') && 99 || 100 }}
60
+ run : |
61
+ coverage report -m --fail-under=${{ (matrix.python-version == 'pypy-3.10') && 99 || 100 }}
62
+ coverage xml
60
63
# pypy3.10 thinks utils.py has one uncovered branch (140 -> 133), which
61
64
# I think is just pypy's optimizer being too smart for coverage.py.
62
65
63
66
- name : Report to coveralls
64
- run : coveralls
65
- continue-on-error : true
66
- env :
67
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
68
- COVERALLS_SERVICE_NAME : github
67
+ uses : coverallsapp/github-action@v2
68
+ with :
69
+ file : coverage.xml
69
70
70
71
lint :
71
72
name : ${{ matrix.toxenv }}
@@ -82,15 +83,15 @@ jobs:
82
83
83
84
steps :
84
85
- name : Git clone
85
- uses : actions/checkout@v2
86
+ uses : actions/checkout@v4
86
87
87
88
- name : Set up Python ${{ env.default_python || '3.9' }}
88
- uses : actions/setup-python@v2
89
+ uses : actions/setup-python@v4
89
90
with :
90
91
python-version : " ${{ env.default_python || '3.9' }}"
91
92
92
93
- name : Pip cache
93
- uses : actions/cache@v2
94
+ uses : actions/cache@v3
94
95
with :
95
96
path : ~/.cache/pip
96
97
key : ${{ runner.os }}-pip-${{ matrix.toxenv }}-${{ hashFiles('tox.ini') }}
@@ -105,4 +106,5 @@ jobs:
105
106
python -m pip install -U tox
106
107
107
108
- name : Run ${{ matrix.toxenv }}
108
- run : python -m tox -e ${{ matrix.toxenv }}
109
+ run : |
110
+ python -m tox -e ${{ matrix.toxenv }}
0 commit comments