Skip to content

Commit

Permalink
pytest changes test
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansurf committed Aug 19, 2024
1 parent 5ca7831 commit 0d7024c
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,22 @@ jobs:
poetry config installer.max-workers 10
poetry install --no-interaction --no-ansi
- name: Run tests
run: |
poetry run python -m pytest --junitxml=pytest.xml --cov-report=term-missing --cov=src tests/ | tee pytest-coverage.txt
# - name: Run tests
# run: |
# poetry run python -m pytest --junitxml=pytest.xml --cov-report=term-missing --cov=src tests/ | tee pytest-coverage.txt

- name: Run tests and collect coverage
run: poetry run pytest --cov=./src --cov-report=xml

- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: Pytest coverage comment
if: matrix.os == 'ubuntu-latest'
continue-on-error: true
uses: MishaKav/[email protected]
with:
pytest-coverage-path: ./pytest-coverage.txt
junitxml-path: ./pytest.xml
# - name: Pytest coverage comment
# if: matrix.os == 'ubuntu-latest'
# continue-on-error: true
# uses: MishaKav/[email protected]
# with:
# pytest-coverage-path: ./pytest-coverage.txt
# junitxml-path: ./pytest.xml

0 comments on commit 0d7024c

Please sign in to comment.