Skip to content

Commit 96afe4e

Browse files
testing: add py3.9 + pypi without cov
1 parent 4a2fc41 commit 96afe4e

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

.github/workflows/testing.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,15 @@ jobs:
2323
strategy:
2424
matrix:
2525
os: [ubuntu-latest, macos-latest, windows-latest]
26-
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
26+
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9]
27+
no-coverage: [0]
2728
include:
2829
- os: ubuntu-latest
29-
python-version: pypy2
30+
python-version: pypy-2.7
31+
no-coverage: 1
3032
- os: ubuntu-latest
31-
python-version: pypy3
33+
python-version: pypy-3.6
34+
no-coverage: 1
3235
steps:
3336
- uses: actions/checkout@v2
3437
- name: Set up Python Env
@@ -41,9 +44,13 @@ jobs:
4144
run: |
4245
make init
4346
- name: Run Tests
47+
env:
48+
NOCOV: ${{ matrix.no-coverage }}
4449
run: |
4550
make test
4651
- name: Upload to Coveralls
52+
# pypy + concurrenct=gevent not supported in coveragepy. See https://github.com/nedbat/coveragepy/issues/560
53+
if: matrix.no-coverage == 0
4754
env:
4855
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4956
COVERALLS_PARALLEL: true

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,15 @@ help:
1818
init:
1919
pip install -r dev_requirements.txt
2020

21+
COVOPTS = --cov-config .coveragerc --cov=vpk
22+
23+
ifeq ($(NOCOV), 1)
24+
COVOPTS =
25+
endif
26+
2127
test:
2228
rm -f .coverage vpk/*.pyc tests/*.pyc
23-
PYTHONHASHSEED=0 pytest --tb=short --cov-config .coveragerc --cov=vpk tests
29+
PYTHONHASHSEED=0 pytest --tb=short $(COVOPTS) tests
2430

2531
pylint:
2632
pylint -r n -f colorized vpk || true

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@
2525
'Topic :: Software Development :: Libraries :: Python Modules',
2626
'Natural Language :: English',
2727
'Operating System :: OS Independent',
28-
'Programming Language :: Python :: 2.6',
2928
'Programming Language :: Python :: 2.7',
3029
'Programming Language :: Python :: 3',
3130
'Programming Language :: Python :: 3.4',
3231
'Programming Language :: Python :: 3.5',
3332
'Programming Language :: Python :: 3.6',
3433
'Programming Language :: Python :: 3.7',
34+
'Programming Language :: Python :: 3.8',
35+
'Programming Language :: Python :: 3.9',
3536
],
3637
keywords='valve pak vpk tf2 dota2 csgo dota',
3738
packages=['vpk'],

0 commit comments

Comments
 (0)