Skip to content

Commit df73242

Browse files
author
Lukas Puehringer
committed
Publish coverage on coveralls in gh workflow (WIP)
Does not work yet! TODO: Troubleshoot - Official coveralls action does not seem to work well for Python coverallsapp/github-action#4 coverallsapp/github-action#30 - Inofficial coveralls action seems to correctly talk to the API but has issues finding the coverage data in the tests folder, or rather the corresponding code. https://github.com/AndreMiras/coveralls-python-action - Official coveralls cli tool (see travis) triggers 500 on coveralls.io
1 parent a13b8dd commit df73242

2 files changed

Lines changed: 38 additions & 13 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 37 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,20 @@ jobs:
1212
# Run regular TUF tests on each OS/Python combination, plus special tests
1313
# (sslib master) and linters on Linux/Python3.x only.
1414
matrix:
15-
python-version: [2.7, 3.6, 3.7, 3.8, 3.9]
16-
os: [ubuntu-latest, macos-latest, windows-latest]
15+
# python-version: [2.7, 3.6, 3.7, 3.8, 3.9]
16+
python-version: [3.9]
17+
# os: [ubuntu-latest, macos-latest, windows-latest]
18+
os: [ubuntu-latest]
1719
toxenv: [py]
18-
include:
19-
- python-version: 3.x
20-
os: ubuntu-latest
21-
toxenv: with-sslib-master
22-
experimental: true
23-
# TODO: Change to 3.x once pylint fully supports Python 3.9
24-
- python-version: 3.8
25-
os: ubuntu-latest
26-
toxenv: lint
20+
# include:
21+
# - python-version: 3.x
22+
# os: ubuntu-latest
23+
# toxenv: with-sslib-master
24+
# experimental: true
25+
# # TODO: Change to 3.x once pylint fully supports Python 3.9
26+
# - python-version: 3.8
27+
# os: ubuntu-latest
28+
# toxenv: lint
2729

2830
runs-on: ${{ matrix.os }}
2931

@@ -53,7 +55,29 @@ jobs:
5355
- name: Install dependencies
5456
run: |
5557
python -m pip install --upgrade pip
56-
python -m pip install tox
58+
python -m pip install tox coveralls
5759
5860
- name: Run tox
59-
run: tox -e ${{ matrix.toxenv }}
61+
run: |
62+
tox -e ${{ matrix.toxenv }}
63+
cat tests/.coverage
64+
pwd
65+
66+
# - name: Publish coverage
67+
# if: matrix.toxenv == 'py'
68+
# uses: AndreMiras/coveralls-python-action@v20201129
69+
# with:
70+
# flag-name: ${{ runner.os }} / Python ${{ matrix.python-version }}
71+
# parallel: true
72+
# debug: true
73+
# base-path: '.'
74+
75+
# finish:
76+
# needs: build
77+
# runs-on: ubuntu-latest
78+
# steps:
79+
# - name: Publish coverage (fin)
80+
# uses: AndreMiras/coveralls-python-action@v20201129
81+
# with:
82+
# parallel-finished: true
83+
# debug: true

‎tests/.coveragerc‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[run]
22
branch = True
3+
relative_files = True
34

45
omit =
56
# Command-line scripts.

0 commit comments

Comments
 (0)