Skip to content

Commit

Permalink
Run mypy after running pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisburr committed Aug 28, 2024
1 parent e860efa commit f0d9b35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,15 @@ jobs:
pip install pytest-github-actions-annotate-failures
pip install git+https://github.com/DIRACGrid/DIRAC.git@integration
pip install ${{ matrix.dependencies }} ${{ matrix.package }}[types]
- name: Run mypy
run: |
mypy ${{ matrix.package }}/src
- name: Run pytest
run: |
cd ${{ matrix.package }}
pip install .[testing]
pytest --cov-report=xml:coverage.xml --junitxml=report.xml
- name: Run mypy
run: |
pip install mypy
mypy ${{ matrix.package }}/src
- name: Upload coverage report
uses: codecov/[email protected]

Expand Down
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ dependencies:
- pip
- m2crypto
- python-gfal2
- mypy

0 comments on commit f0d9b35

Please sign in to comment.