Skip to content

Commit 5b01d3f

Browse files
committed
install mypy
1 parent 342f441 commit 5b01d3f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/unit-tests.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,18 @@ jobs:
8585
bash ./tests/run_code_style.sh install
8686
bash ./tests/run_code_style.sh lint
8787
88+
- name: Ensure mypy is installed in uv environment
89+
run: uv pip install mypy
8890
- name: Run Mypy
89-
# https://github.com/pytorch/ignite/pull/2780
9091
if: ${{ matrix.os == 'ubuntu-latest' && matrix.pytorch-channel == 'pytorch-nightly'}}
9192
run: |
9293
bash ./tests/run_code_style.sh mypy
93-
94+
- name: Run Mypy
95+
# https://github.com/pytorch/ignite/pull/2780
96+
if: ${{ matrix.os == 'ubuntu-latest' && matrix.pytorch-channel == 'pytorch-nightly'}}
97+
run: |
98+
uv pip install mypy
99+
uv mypy --config-file mypy.ini
94100
# Download MNIST: https://github.com/pytorch/ignite/issues/1737
95101
# to "/tmp" for unit tests
96102
- name: Download MNIST

0 commit comments

Comments
 (0)