Skip to content

Commit

Permalink
Upload coverage data to coveralls.io
Browse files Browse the repository at this point in the history
  • Loading branch information
apdavison committed Oct 14, 2022
1 parent 6385d0f commit 8c592e8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/full-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Install basic Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install coveralls pytest pytest-cov
python -m pip install pytest pytest-cov
python -m pip install mpi4py
python -m pip install -r requirements.txt
- name: Install Brian 2
Expand All @@ -57,3 +57,21 @@ jobs:
- name: Run unit and system tests
run: |
pytest -v --cov=pyNN test
- name: Upload coverage data
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.test-name }}
COVERALLS_PARALLEL: true
coveralls:
name: Indicate completion to coveralls.io
needs: test
runs-on: ubuntu-latest
container: python:3-slim
steps:
- name: Finished
run: |
pip3 install --upgrade coveralls
coveralls --service=github --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions ci/test_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ if [ "$TRAVIS_PYTHON_VERSION" == "3.9" ]; then
else
pytest --verbose test/unittests
fi

exit $?

0 comments on commit 8c592e8

Please sign in to comment.