Skip to content

Commit fbea856

Browse files
ci: include py3.9 + pypi no cov
1 parent 9ddb1ba commit fbea856

File tree

3 files changed

+25
-9
lines changed

3 files changed

+25
-9
lines changed

.github/workflows/testing_initiative.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,15 @@ jobs:
3232
strategy:
3333
matrix:
3434
os: [ubuntu-latest, macos-latest, windows-latest]
35-
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
36-
# exclude:
37-
# - os: macos-latest
38-
# python-version: 3.8
39-
# - os: windows-latest
40-
# python-version: 3.6
35+
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9]
36+
no-coverage: [0]
37+
include:
38+
- os: ubuntu-latest
39+
python-version: pypy-2.7
40+
no-coverage: 1
41+
- os: ubuntu-latest
42+
python-version: pypy-3.6
43+
no-coverage: 1
4144
steps:
4245
- uses: actions/checkout@v2
4346
- name: Set up Python Env
@@ -50,9 +53,13 @@ jobs:
5053
run: |
5154
make init
5255
- name: Run Tests
56+
env:
57+
NOCOV: ${{ matrix.no-coverage }}
5358
run: |
5459
make test
5560
- name: Upload to Coveralls
61+
# pypy + concurrenct=gevent not supported in coveragepy. See https://github.com/nedbat/coveragepy/issues/560
62+
if: matrix.no-coverage == 0
5663
env:
5764
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5865
COVERALLS_PARALLEL: true
@@ -90,6 +97,8 @@ jobs:
9097
- name: Display Python version
9198
run: python -c "import sys; print(sys.version)"
9299
- name: Install dependencies
93-
run: make init
100+
run: |
101+
make init
102+
make init_docs
94103
- name: Build Docs
95104
run: make docs

Makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,21 @@ export HELPBODY
2424
help:
2525
@echo "$$HELPBODY"
2626

27-
init: init_docs
27+
init:
2828
pip install -r dev_requirements.txt
2929

3030
init_docs:
3131
pip install sphinx==1.8.5 sphinx_rtd_theme
3232

33+
COVOPTS = --cov-config .coveragerc --cov=steam
34+
35+
ifeq ($(NOCOV), 1)
36+
COVOPTS =
37+
endif
38+
3339
test:
3440
coverage erase
35-
PYTHONHASHSEED=0 pytest --tb=short --cov-config .coveragerc --cov=steam tests
41+
PYTHONHASHSEED=0 pytest --tb=short $(COVOPTS) tests
3642

3743
webauth_gen:
3844
rm -f vcr/webauth*

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
'Programming Language :: Python :: 3.6',
5454
'Programming Language :: Python :: 3.7',
5555
'Programming Language :: Python :: 3.8',
56+
'Programming Language :: Python :: 3.9',
5657
'Programming Language :: Python :: Implementation :: PyPy',
5758
],
5859
keywords='valve steam steamid api webapi steamcommunity',

0 commit comments

Comments
 (0)