Skip to content

Commit 81c1c9c

Browse files
committed
Add code quality checks to CI (as in linkml)
1 parent b317456 commit 81c1c9c

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/check-dependencies.yaml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,29 @@ on:
88
types: trigger-run-check-dependencies
99

1010
jobs:
11+
quality-checks:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/[email protected]
15+
- name: Install Poetry
16+
run: |
17+
pipx install poetry
18+
pipx inject poetry poetry-dynamic-versioning
19+
- uses: actions/[email protected]
20+
with:
21+
python-version: 3.13
22+
- name: Check pyproject.toml and poetry.lock
23+
run: poetry check
24+
- name: Install tox
25+
run: python -m pip install tox
26+
- name: Run codespell
27+
run: tox -e codespell
28+
- name: Run code quality checks
29+
run: tox -e lint
30+
1131
test:
32+
needs:
33+
- quality-checks
1234
strategy:
1335
fail-fast: false
1436
matrix:
@@ -35,7 +57,7 @@ jobs:
3557
with:
3658
# Fetch all history for all branches and all tags.
3759
# The tags are required for dynamic versioning.
38-
fetch-depth: 0
60+
fetch-depth: 0
3961

4062
- name: Set up Python ${{ matrix.python-version }}
4163
uses: actions/[email protected]

0 commit comments

Comments
 (0)