Skip to content

Commit

Permalink
ci(actions): update pytest command
Browse files Browse the repository at this point in the history
  • Loading branch information
codejedi365 committed May 5, 2024
1 parent b41ad31 commit 03f6a53
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,22 @@ jobs:
python -m pip install pytest-github-actions-annotate-failures
- name: pytest
run: PYTHONHASHSEED=123345 python -m pytest -v tests
id: tests
run: |
python -m pytest \
-vv \
-nauto \
--cov=semantic_release \
--cov-context=test \
--cov-report=term-missing \
--cov-fail-under=80 \
--junit-xml=tests/reports/pytest-results.xml
- name: Report | Upload Test Results
uses: mikepenz/action-junit-report@v4.2.1
if: ${{ always() && steps.tests.outcome != 'skipped' }}
with:
report_paths: ./tests/reports/*.xml

lint:
runs-on: ubuntu-latest
Expand Down
17 changes: 16 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,22 @@ jobs:
python -m pip install pytest-github-actions-annotate-failures
- name: pytest
run: PYTHONHASHSEED=123345 python -m pytest -v tests
id: tests
run: |
python -m pytest \
-vv \
-nauto \
--cov=semantic_release \
--cov-context=test \
--cov-report=term-missing \
--cov-fail-under=80 \
--junit-xml=tests/reports/pytest-results.xml
- name: Report | Upload Test Results
uses: mikepenz/action-junit-report@v4.2.1
if: ${{ always() && steps.tests.outcome != 'skipped' }}
with:
report_paths: ./tests/reports/*.xml

lint:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 03f6a53

Please sign in to comment.