-
Notifications
You must be signed in to change notification settings - Fork 73
52 lines (44 loc) · 1.18 KB
/
static-analysis.yml
File metadata and controls
52 lines (44 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
name: Static Analysis
on:
workflow_dispatch:
release:
push:
branches: ["main"]
pull_request:
types: [opened, synchronize, reopened, closed]
jobs:
static-analysis:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Apply Fortran linter, fortitude
run: |
cd ${{ github.workspace }}
fortitude check
- name: Apply Python linter, ruff
run: |
cd ${{ github.workspace }}
ruff format --check
ruff check
- name: Apply RST linter, sphinx-lint
run: |
cd ${{ github.workspace }}
sphinx-lint --ignore=gyre/gyre
- name: Apply custom MESA linters
run: |
cd ${{ github.workspace }}
cd linters
python check_columns.py
python check_defaults.py
python check_pgstar.py
python check_photos.py