Skip to content

Commit

Permalink
Merge pull request #612 from trakt/razzeee-patch-1
Browse files Browse the repository at this point in the history
Fix coverage creation
  • Loading branch information
razzeee authored Sep 2, 2023
2 parents 1d11116 + d5e11b9 commit b84b515
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,19 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.x
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: 3.x
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install python-dateutil pytest mock pytest-cov coverage coveragepy-lcov
pip install python-dateutil pytest mock pytest-cov coverage
- name: Run Test
run: |
py.test --cov coveralls --cov-report term-missing --cov=resources tests/
- name: Covert to lcov
run: |
coveragepy-lcov
py.test --cov coveralls --cov-report term-missing --cov-report=lcov --cov=resources tests/
- name: Coveralls GitHub Action
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: lcov.info
path-to-lcov: coverage.lcov
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
Thumbs.db
*~
.cache
.coverage

0 comments on commit b84b515

Please sign in to comment.