Skip to content

Commit

Permalink
Trying with coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
leocalm committed Jul 19, 2022
1 parent 592502b commit e293583
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: CI
on: ["push", "pull_request"]
on:
push:
branches: [ main ]
pull_request:
branches: [ '**' ]


jobs:
ci:
Expand Down Expand Up @@ -28,8 +33,8 @@ jobs:
echo "PYTHONPATH=${GITHUB_WORKSPACE}" >> $GITHUB_ENV
export PYTHONPATH=${GITHUB_WORKSPACE}
cd avro_validator/tests
pytest --cov=avro_validator --cov-report xml
pytest --cov=avro_validator
- name: Coveralls
uses: AndreMiras/coveralls-python-action@develop
with:
flag-name: Unit Test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: coveralls --service=github
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ tox
Sphinx>=5.0.0
sphinx-theme==1.0
coverage
typeguard==2.13.3
typeguard==2.13.3
coveralls
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ max-complexity = 10

[coverage:run]
branch = true
relative_files = True
source =
avro_validator
avro_validator/tests
Expand Down

0 comments on commit e293583

Please sign in to comment.