File tree Expand file tree Collapse file tree 1 file changed +63
-0
lines changed
Expand file tree Collapse file tree 1 file changed +63
-0
lines changed Original file line number Diff line number Diff line change 1+ on :
2+ push :
3+ paths :
4+ - " ignis/**"
5+ - " .github/workflows/static.yaml"
6+ pull_request :
7+ paths :
8+ - " ignis/**"
9+ - " .github/workflows/static.yaml"
10+
11+ name : Static Analysis
12+ jobs :
13+ mypy-check :
14+ name : Mypy
15+ runs-on : ubuntu-latest
16+ steps :
17+ - uses : actions/checkout@v4
18+ - name : Set up Python
19+ uses : actions/setup-python@v5
20+ with :
21+ python-version : " 3.12"
22+
23+ - name : Install system dependencies
24+ run : |
25+ sudo apt update
26+ sudo apt install libcairo2-dev git
27+
28+ - name : Clone Ignis repository
29+ run : |
30+ git clone https://github.com/linkfrg/ignis.git
31+
32+ - name : Install Python dependencies
33+ run : |
34+ python -m pip install --upgrade pip
35+ cd ignis
36+ pip install --no-deps --config-options=setup-args="-Dbuild_gvc=false -Ddependency_check=false" .
37+ pip install -r dev.txt
38+ grep -vE "PyGObject|setuptools" requirements.txt | pip install -r /dev/stdin
39+ cd ..
40+
41+ - name : Run mypy analysis
42+ run : |
43+ mypy
44+
45+ ruff-check :
46+ name : Ruff
47+ runs-on : ubuntu-latest
48+ steps :
49+ - uses : actions/checkout@v4
50+ - name : Set up Python
51+ uses : actions/setup-python@v5
52+ with :
53+ python-version : " 3.12"
54+ - name : Install Python dependencies
55+ run : |
56+ python -m pip install --upgrade pip
57+ pip install ruff
58+
59+ - name : Check code
60+ run : ruff check
61+
62+ - name : Check format
63+ run : ruff format --check
You can’t perform that action at this time.
0 commit comments