Skip to content

Commit 1112466

Browse files
committed
10 | Add mounting in workflow to transfer the coverage data correctly
1 parent f392bbe commit 1112466

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ jobs:
2323
set -e # Exit immediately if a command exits with a non-zero status.
2424
set -u # Exit immediately if a variable is not defined.
2525
26-
docker run flask-inputfilter coverage run --source=flask_inputfilter -m pytest test/
26+
docker run -v $(pwd)/coverage/.coverage:/app/.coverage flask-inputfilter coverage run --source=flask_inputfilter -m pytest test/
2727
2828
- name: Upload coverage to Coveralls
2929
env:
3030
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
31-
run: docker run -e COVERALLS_REPO_TOKEN=${{ secrets.COVERALLS_REPO_TOKEN }} flask-inputfilter coveralls
31+
run: docker run -v $(pwd)/coverage/.coverage:/app/.coverage -e COVERALLS_REPO_TOKEN=${{ secrets.COVERALLS_REPO_TOKEN }} flask-inputfilter coveralls
3232

3333
- name: Run code style checks
3434
run: |

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ pillow==8.0.0
77
pytest
88
requests==2.22.0
99
coveralls
10+
coverage

0 commit comments

Comments
 (0)