Skip to content

Commit

Permalink
Fixed github actions issue with coveralls (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
barseghyanartur committed Jun 22, 2021
1 parent f2901f0 commit 0e86243
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 23 deletions.
1 change: 0 additions & 1 deletion .codecov.yml

This file was deleted.

7 changes: 7 additions & 0 deletions .coveragerc
Expand Up @@ -7,3 +7,10 @@ omit =
src_*/*
src_py27/*
src_py35/*

relative_files = True

[report]
exclude_lines =
pragma: no cover
raise NotImplementedError
File renamed without changes.
2 changes: 2 additions & 0 deletions .env
@@ -0,0 +1,2 @@
GITHUB_TOKEN
COVERALLS_REPO_TOKEN
39 changes: 17 additions & 22 deletions .github/workflows/test.yml
Expand Up @@ -34,26 +34,21 @@ jobs:
pip install -r requirements/testing.txt -r requirements/release.txt
- name: Run Tests
run: tox -e ${{ matrix.tox_env }}
- name: Coveralls
uses: AndreMiras/coveralls-python-action@develop
with:
parallel: true
flag-name: Run Tests

# finish:
# needs: test
# runs-on: ubuntu-latest
# steps:
# - name: Coveralls Finished
# env:
# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
# GITHUB_TOKEN: $COVERALLS_REPO_TOKEN
# run: |
# sudo apt-get install git -y
# pip install coveralls
# coveralls -v --service=github-actions

# finish:
# needs: test
# runs-on: ubuntu-latest
# steps:
# - name: Coveralls Finished
# uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.COVERALLS_GITHUB_TOKEN }}
# parallel-finished: true
coveralls_finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
GITHUB_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
uses: AndreMiras/coveralls-python-action@develop
with:
parallel-finished: true
debug: True

0 comments on commit 0e86243

Please sign in to comment.