-
Notifications
You must be signed in to change notification settings - Fork 12
46 lines (35 loc) · 942 Bytes
/
hygiene.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Hygiene
on:
push:
branches:
- feature/*
- bugfix/*
- hotfix/*
- develop
- main
permissions:
contents: read
jobs:
code-hygiene:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pre-commit
- name: Install pre-commit hooks and execute rules
run: pre-commit run --all-files
doc-hygiene:
needs: code-hygiene
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build documentation
run: make doc/build
- name: Check documentation status
run: git diff --exit-code # exit 1 if there's a difference between what was pushed with what was produced by doc/build.