Skip to content

Commit fb96be2

Browse files
committed
DEV: add linting to ci
1 parent 2523a3b commit fb96be2

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,33 @@ jobs:
121121
run: |
122122
pip install nox
123123
nox -s type_check-${{ matrix.python-version }}
124-
124+
125+
lint:
126+
name: "Linting"
127+
needs: build-iqtree
128+
runs-on: ${{ matrix.os }}
129+
130+
strategy:
131+
matrix:
132+
python-version: ["3.12"]
133+
os: [ubuntu-latest]
134+
135+
steps:
136+
- uses: "actions/checkout@v4"
137+
with:
138+
fetch-depth: 0
139+
140+
- uses: "actions/setup-python@v5"
141+
with:
142+
python-version: "${{ matrix.python-version }}"
143+
144+
- uses: actions/cache/restore@v4
145+
with:
146+
key: libiqtree-${{ matrix.os }}-${{ env.IQ_TREE_2_SHA }}
147+
path: src/piqtree2/_libiqtree/libiqtree2.a
148+
fail-on-cache-miss: true
149+
150+
- name: "Run Type Checking for ${{ matrix.python-version }}"
151+
run: |
152+
pip install nox
153+
nox -s ruff-${{ matrix.python-version }}

0 commit comments

Comments
 (0)