Skip to content

Commit

Permalink
Make CI run type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
cgokmen committed Dec 27, 2024
1 parent 260704c commit 156898d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ jobs:
run: printenv

- name: Run tests
run: pytest -s tests/${{ matrix.test_file }}.py --junitxml=${{ matrix.test_file }}.xml && cp ${{ matrix.test_file }}.xml ${GITHUB_WORKSPACE}/
run: pytest -s --annotate-output=./${{ matrix.test_file }}.json tests/${{ matrix.test_file }}.py --junitxml=${{ matrix.test_file }}.xml && cp ${{ matrix.test_file }}.xml ${GITHUB_WORKSPACE}/ && cp ${{ matrix.test_file }}.json ${GITHUB_WORKSPACE}/
continue-on-error: true

- name: Deploy artifact
uses: actions/upload-artifact@v3
with:
name: ${{ github.run_id }}-tests-${{ matrix.test_file }}
path: ${{ matrix.test_file }}.xml
path: ${{ matrix.test_file }}.*

- name: Check for failures, errors, or missing XML
run: |
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"pytest>=6.2.3",
"pytest-cov>=3.0.0",
"pytest_rerunfailures",
"pytest-annotate",
"mkdocs",
"mkdocs-autorefs",
"mkdocs-gen-files",
Expand Down

0 comments on commit 156898d

Please sign in to comment.