Skip to content

Commit

Permalink
ci: add py3.9 + pypy no cov
Browse files Browse the repository at this point in the history
  • Loading branch information
rossengeorgiev committed Feb 1, 2021
1 parent 7cf1ffe commit 146cfdb
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,15 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9]
no-coverage: [0]
include:
- os: ubuntu-latest
python-version: pypy2
python-version: pypy-2.7
no-coverage: 1
- os: ubuntu-latest
python-version: pypy3
python-version: pypy-3.6
no-coverage: 1
steps:
- uses: actions/checkout@v2
- name: Set up Python Env
Expand All @@ -45,10 +48,12 @@ jobs:
make init
- name: Run Tests
env:
PYTHONHASHSEED: "0"
NOCOV: ${{ matrix.no-coverage }}
run: |
make test
- name: Upload to Coveralls
# pypy + concurrenct=gevent not supported in coveragepy. See https://github.com/nedbat/coveragepy/issues/560
if: matrix.no-coverage == 0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_PARALLEL: true
Expand Down
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@ help:
init:
pip install -r dev_requirements.txt

COVOPTS = --cov-config .coveragerc --cov=vdf

ifeq ($(NOCOV), 1)
COVOPTS =
endif

test:
rm -f .coverage vdf/*.pyc tests/*.pyc
PYTHONHASHSEED=0 python -m pytest --tb=short --cov-config .coveragerc --cov=vdf tests
PYTHONHASHSEED=0 pytest --tb=short $(COVOPTS) tests

pylint:
pylint -r n -f colorized vdf || true
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,12 @@
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: Implementation :: PyPy',
],
keywords='valve keyvalue vdf tf2 dota2 csgo',
Expand Down

0 comments on commit 146cfdb

Please sign in to comment.