File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ # Workflow to run mypy
2+ # Adapted from the CPython mypy action
3+ name : mypy
4+
5+ on : [push, pull_request]
6+
7+ permissions :
8+ contents : read
9+
10+ env :
11+ UV_SYSTEM_PYTHON : 1
12+ PIP_DISABLE_PIP_VERSION_CHECK : 1
13+ FORCE_COLOR : 1
14+ TERM : xterm-256color # needed for FORCE_COLOR to work on mypy on Ubuntu, see https://github.com/python/mypy/issues/13817
15+
16+ jobs :
17+ mypy :
18+ name : mypy
19+ runs-on : ubuntu-latest
20+ steps :
21+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
22+ with :
23+ persist-credentials : false
24+ - uses : astral-sh/setup-uv@22695119d769bdb6f7032ad67b9bca0ef8c4a174 # v5.4.0
25+ with :
26+ enable-cache : true
27+ cache-dependency-glob : ' '
28+ cache-suffix : ' 3.13'
29+ - name : Setup Python
30+ uses : actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
31+ with :
32+ python-version : ' 3.13'
33+ - run : sudo apt-get install -y libwayland-dev libcairo2-dev libgirepository-2.0-dev
34+ - run : uv pip install -r pyproject.toml
35+ - run : uv pip install --group types
36+ - run : mypy safeeyes
You can’t perform that action at this time.
0 commit comments