Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adyanth committed Oct 18, 2024
1 parent eeb9e58 commit c469c69
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
File renamed without changes.
16 changes: 11 additions & 5 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Python Test

on:
workflow_dispatch:
push:
branches:
- 'main'
pull_request:
branches:
- '*'
permissions:
contents: write
checks: write
pull-requests: write

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand All @@ -30,4 +30,10 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Test
run: python -m pytest --junitxml=junit/test-results.xml --cov=main --cov-report=xml --cov-report=html
run: python -m pytest --junitxml=pytest.xml --cov=main --cov-report=xml:coverage.xml | tee pytest-coverage.txt
- name: Pytest coverage comment
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-coverage-path: ./pytest-coverage.txt
pytest-xml-coverage-path: ./coverage.xml
junitxml-path: ./pytest.xml
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ venv/
__pycache__/
.coverage
coverage.xml
htlmcov/
junit/
pytest.xml
pytest-coverage.txt
.ruff_cache
.DS_Store

0 comments on commit c469c69

Please sign in to comment.