Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Because all the checks are performed in the same job and github actions will stop at the first step failure within a job, if one of the ruff checks (formatting or checking) fails then mypy does not run at all, which is undesirable. Turns out the steps have an implicit `if success()` if no [status check function][check] (`success`, `failure`, `always`, `cancelled`) is used to guard the step. Thus by gating on `always` and possibly explicitly checking the conclusion of specific checks it becomes possible to run `mypy` even though `ruff check` failed, but not run it if *installing* mypy failed. [check]: https://docs.github.com/en/actions/learn-github-actions/expressions#status-check-functions
- Loading branch information