Skip to content

Commit 3cea301

Browse files
committed
Try to fix quality QH Actions workflow
1 parent 8af28c0 commit 3cea301

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/quality.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,18 @@ jobs:
1616
steps:
1717
- name: Check out
1818
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0 # Needed for setuptools_scm to work correctly
1921

2022
- uses: actions/cache@v4
2123
with:
2224
path: ~/.cache/pre-commit
2325
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
24-
25-
- name: Set up the environment
26-
uses: ./.github/actions/setup-python-env
26+
- name: Install uv and set the python version
27+
uses: astral-sh/setup-uv@v6
2728
with:
28-
extra-dependencies: --all-extras
29-
29+
python-version: "3.13"
30+
- name: Install the project
31+
run: uv sync --group quality
3032
- name: Run pre-commit
3133
run: uv run pre-commit run -a --show-diff-on-failure

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ docs = [
6565
"setuptools_scm>=8",
6666
]
6767
plugins = ["cmd2-ext-test"]
68+
quality = ["pre-commit>=2.20.0"]
6869
test = [
6970
"codecov>=2",
7071
"coverage>=7",

0 commit comments

Comments
 (0)