File tree 6 files changed +47
-17
lines changed
6 files changed +47
-17
lines changed Original file line number Diff line number Diff line change
1
+
2
+ # Docs: https://coverage.readthedocs.org/en/latest/config.html
3
+
1
4
[run]
2
5
concurrency = gevent
3
6
omit =
4
7
steam/protobufs/*
5
8
steam/enums/*
9
+
10
+ branch = False
11
+
12
+ # If True, stores relative file paths in data file (needed for Github Actions).
13
+ # Using this parameter requires coverage>=5.0
14
+ relative_files = True
Original file line number Diff line number Diff line change @@ -48,19 +48,33 @@ jobs:
48
48
run : python -c "import sys; print(sys.version)"
49
49
- name : Install dependencies
50
50
run : |
51
- pip install -r requirements.txt
52
- pip install coveralls
51
+ make init
53
52
- name : Run Tests
54
- env :
55
- PYTHONHASHSEED : " 0"
56
53
run : |
57
- pytest --cov=steam tests
58
- - name : Coveralls
54
+ make test
55
+ - name : Upload to Coveralls
59
56
env :
60
57
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
61
- COVERALLS_REPO_TOKEN : ${{ secrets.COVERALLS_REPO_TOKEN }}
58
+ COVERALLS_PARALLEL : true
59
+ COVERALLS_FLAG_NAME : " ${{ matrix.os }}_${{ matrix.python-version }}"
62
60
run : |
63
- coveralls
61
+ coveralls --service=github
62
+
63
+ coveralls :
64
+ name : Finish Coveralls
65
+ needs : test
66
+ runs-on : ubuntu-latest
67
+ container : python:3-slim
68
+ steps :
69
+ - name : Install coveralls
70
+ run : |
71
+ pip3 install --upgrade coveralls
72
+ - name : Send coverage finish to coveralls.io
73
+ env :
74
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
75
+ run : |
76
+ coveralls --finish
77
+
64
78
build-docs :
65
79
runs-on : ${{ matrix.os }}
66
80
strategy :
Original file line number Diff line number Diff line change @@ -25,14 +25,14 @@ help:
25
25
@echo " $$ HELPBODY"
26
26
27
27
init : init_docs
28
- pip install -r requirements .txt
28
+ pip install -r dev_requirements .txt
29
29
30
30
init_docs :
31
31
pip install sphinx==1.8.5 sphinx_rtd_theme
32
32
33
33
test :
34
34
coverage erase
35
- PYTHONHASHSEED=0 pytest --cov=steam tests
35
+ PYTHONHASHSEED=0 pytest --tb=short --cov-config .coveragerc -- cov=steam tests
36
36
37
37
webauth_gen :
38
38
rm -f vcr/webauth*
Original file line number Diff line number Diff line change @@ -113,8 +113,8 @@ IRC: irc.freenode.net / #steamkit (`join via webchat <https://webchat.freenode.n
113
113
:target: https://pypi.python.org/pypi/steam
114
114
:alt: MIT License
115
115
116
- .. |coverage | image :: https://scrutinizer-ci.com/g /ValvePython/steam/badges/coverage.png?b=master
117
- :target: https://scrutinizer-ci.com/g /ValvePython/steam/ ?branch=master
116
+ .. |coverage | image :: https://img.shields.io/coveralls /ValvePython/steam/master.svg?style=flat
117
+ :target: https://coveralls.io/r /ValvePython/steam?branch=master
118
118
:alt: Test coverage
119
119
120
120
.. |sonar_maintainability | image :: https://sonarcloud.io/api/project_badges/measure?project=ValvePython_steam&metric=sqale_rating
Original file line number Diff line number Diff line change
1
+
2
+ -r requirements.txt
3
+
4
+ vcrpy==2.0.1
5
+ mock==1.3.0
6
+
7
+ coverage>=5.0; python_version == '2.7' or python_version >= '3.5'
8
+ pytest-cov>=2.7.0; python_version == '2.7' or python_version >= '3.5'
9
+
10
+ # coveralls 2.0 has removed support for Python 2.7 and 3.4
11
+ git+https://github.com/andy-maier/coveralls-python.git@andy/add-py27#egg=coveralls; python_version == '2.7'
12
+ coveralls>=2.1.2; python_version >= '3.5'
Original file line number Diff line number Diff line change @@ -6,10 +6,5 @@ gevent>=1.3.0
6
6
protobuf >= 3.0.0
7
7
gevent-eventemitter >= 2.1
8
8
enum34 == 1.1.2 ; python_version < '3.4'
9
- coverage == 4.0.3
10
- pytest == 3.2.1
11
- pytest-cov == 2.5.1
12
- mock == 1.3.0
13
9
PyYAML == 5.1
14
- vcrpy == 2.0.1
15
10
cachetools >= 3.0.0
You can’t perform that action at this time.
0 commit comments