Skip to content

Commit 114d317

Browse files
committed
Add code-quality job to pulp-docs CI
1 parent 3e61993 commit 114d317

File tree

4 files changed

+30
-1
lines changed

4 files changed

+30
-1
lines changed

.github/workflows/code-quality.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Code Quality
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
pre-commit:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- name: Set up Python
13+
uses: actions/setup-python@v4
14+
with:
15+
python-version: "3.12"
16+
17+
- name: Install dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
pip install pre-commit
21+
22+
- name: Run code quality checks
23+
run: make code-quality

.github/workflows/pr.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,14 @@ concurrency:
88
cancel-in-progress: true
99

1010
jobs:
11+
code-quality:
12+
uses: "./.github/workflows/code-quality.yml"
13+
1114
docs:
1215
uses: "./.github/workflows/docs.yml"
1316

1417
tests:
18+
needs: "code-quality"
1519
uses: "./.github/workflows/tests.yml"
1620

1721
ready-to-ship:

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
code-quality:
2+
pre-commit run -a
3+
14
docs:
25
mkdocs build
36

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ dependencies = [
1717
"httpx",
1818
"rich",
1919
"GitPython~=3.1.44",
20-
"pre-commit~=3.6.2",
2120
]
2221

2322
[project.scripts]

0 commit comments

Comments
 (0)