Skip to content

Commit e594a7f

Browse files
Merge pull request #5 from robinmordasiewicz/ci/optimize-workflows
ci: optimize docs workflow and pre-commit configuration
2 parents ee51be5 + 2326f74 commit e594a7f

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212

1313
concurrency:
1414
group: "pages"
15-
cancel-in-progress: false
15+
cancel-in-progress: true
1616

1717
jobs:
1818
build-and-deploy:
@@ -24,16 +24,6 @@ jobs:
2424
- name: Checkout
2525
uses: actions/checkout@v4
2626

27-
- name: Set up Python
28-
uses: actions/setup-python@v5
29-
with:
30-
python-version: '3.11'
31-
32-
- name: Install project for doc generation
33-
run: |
34-
python -m pip install --upgrade pip
35-
pip install -e .
36-
3727
- name: Download validation reports
3828
if: github.event_name == 'workflow_run'
3929
uses: dawidd6/action-download-artifact@v6

.pre-commit-config.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
default_install_hook_types: [pre-commit, commit-msg]
66
default_stages: [pre-commit]
7+
fail_fast: true
78

89
repos:
910
# =============================================================================
@@ -12,6 +13,8 @@ repos:
1213
- repo: https://github.com/pre-commit/pre-commit-hooks
1314
rev: v5.0.0
1415
hooks:
16+
- id: no-commit-to-branch
17+
args: [--branch, main, --branch, master]
1518
# Whitespace & Line Endings
1619
- id: trailing-whitespace
1720
args: [--markdown-linebreak-ext=md]
@@ -35,8 +38,6 @@ repos:
3538
- id: check-case-conflict
3639
- id: check-added-large-files
3740
args: [--maxkb=1000]
38-
- id: no-commit-to-branch
39-
args: [--branch, main, --branch, master]
4041

4142
# Security - Private Keys
4243
- id: detect-private-key

0 commit comments

Comments
 (0)