Skip to content

Commit

Permalink
Set Mypy version downloaded in CI (#859)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacobfaib authored Oct 12, 2023
1 parent a3dd76b commit 68306e1
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,12 @@ run_test_or_analysis() {
pytest
;;
"mypy")
echo "Executing mypy..."
mamba install -y -n "${DEFAULT_CONDA_ENV:-legate}" mypy
echo "Executing mypy..."
# Keep mypy version identical to mypy version in .pre-commit.yaml. The only
# reason we don't read it directly here is because when this is run in CI, it
# is done on a job which does not checkout the repo (and hence cannot read the
# .pre-commit.yaml).
mamba install -y -n "${DEFAULT_CONDA_ENV:-legate}" mypy=1.5.1
cd ~/legate
mypy legate
;;
Expand All @@ -36,4 +40,4 @@ run_test_or_analysis() {
return 0
}

(run_test_or_analysis "$@");
(run_test_or_analysis "$@");

0 comments on commit 68306e1

Please sign in to comment.