8000 Update github actions to test with latest python (#1069) · hardbyte/python-can@5b63bb2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5b63bb2

Browse files
zariiii9003felixdivohardbyte
authored
Update github actions to test with latest python (#1069)
* test 3.10.0-beta.2 * update pytest * use codecov action * generate coverage.xml * Update .github/workflows/build.yml Co-authored-by: Felix Divo <4403130+felixdivo@users.noreply.github.com> Co-authored-by: Brian Thorne <brian@thorne.link>
1 parent ead8c70 commit 5b63bb2

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
experimental: [false]
1616
python-version: [3.6, 3.7, 3.8, 3.9, pypy3]
1717
include:
18-
- python-version: 3.10.0-alpha.7 # Newest: https://github.com/actions/python-versions/blob/main/versions-manifest.json
18+
- python-version: 3.10.0-beta.4 # Newest: https://github.com/actions/python-versions/blob/main/versions-manifest.json
1919
os: ubuntu-latest
2020
experimental: true
2121
fail-fast: false
@@ -32,6 +32,10 @@ jobs:
3232
- name: Test with pytest via tox
3333
run: |
3434
tox -e gh
35+
- name: Upload coverage to Codecov
36+
uses: codecov/codecov-action@v1
37+
with:
38+
fail_ci_if_error: true
3539

3640
format:
3741
runs-on: ubuntu-latest

tox.ini

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
[testenv]
44
deps =
5-
pytest~=5.3
6-
pytest-timeout~=1.3
7-
pytest-cov~=2.8
8-
coverage==4.5.*
5+
pytest==6.2.*,>=6.2.4
6+
pytest-timeout==1.4.*
7+
pytest-cov==2.12.*
8+
coverage==5.5
99
codecov==2.1.10
1010
hypothesis~=4.56
1111
pyserial~=3.0
@@ -20,12 +20,8 @@ recreate = True
2020
passenv =
2121
CI
2222
GITHUB_*
23-
CODECOV_*
2423
PY_COLORS
2524

26-
commands_post =
27-
codecov -X gcov
28-
2925
[testenv:travis]
3026
passenv =
3127
CI
@@ -39,7 +35,7 @@ commands_post =
3935

4036
[pytest]
4137
testpaths = test
42-
addopts = -v --timeout=300 --cov=can --cov-append --cov-report=term
38+
addopts = -v --timeout=300 --cov=can --cov-config=tox.ini --cov-report=xml --cov-report=term
4339

4440

4541
[coverage:run]

0 commit comments

Comments
 (0)
0