Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ jobs:
python -m pip install mypy pandas-stubs scipy-stubs xarray
python -m pip list
# mypy is informational. New releases of mypy and of the stubs of NumPy, pandas
# and SciPy often add errors, so a failure does not fail the check. It adds a
# warning with the number of errors instead, and the log of this step lists them.
# and SciPy often add errors, so a failure does not fail the check. The step
# records the failure instead of failing, so that the only annotation is a
# warning with the number of errors. The log of this step lists them.
- name: Run mypy
id: mypy
continue-on-error: true
run: python -m mypy linearmodels | tee mypy.txt
run: python -m mypy linearmodels | tee mypy.txt || echo "failed=true" >> "$GITHUB_OUTPUT"
- name: Report the result of mypy
if: steps.mypy.outcome == 'failure'
if: steps.mypy.outputs.failed == 'true'
run: echo "::warning title=mypy::$(tail -n 1 mypy.txt). This check is informational."
Loading
Loading