Skip to content

Commit

Permalink
fix coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
GIC-de committed Jul 13, 2022
1 parent 31edf81 commit 5300091
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ on:
branches: [ master ]

jobs:
build:

test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11-dev']
python-version: [ '3.8', '3.9', '3.10', '3.11-dev']

steps:
- uses: actions/checkout@v2
Expand All @@ -26,7 +25,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 nose coverage
pip install flake8 nose coverage lcov
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Install pyrad
run: |
Expand All @@ -37,11 +36,25 @@ jobs:
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Run unittest
- name: Run unittest with coverage
run: |
coverage run -m unittest discover
coverage report -m
coverage lcov
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.COVERALLS_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: run-${{ matrix.python-version }}
path-to-lcov: coverage.lcov
parallel: true

finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true

0 comments on commit 5300091

Please sign in to comment.