-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (39 loc) · 1.17 KB
/
style.yml
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
47
48
name: Style
on:
pull_request:
branches:
- main
push:
branches:
- main
schedule:
- cron: "0 0 * * 1"
workflow_dispatch:
jobs:
pre-commit:
name: Pre-Commit Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Install pre-commit
run: pipx install --force poetry==1.8.5
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
with:
python-version: '3.11'
cache: 'poetry'
- name: Install dependencies
run: poetry install
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
env:
cache-name: cache-pre-commit
with:
path: ~/.cache/pre-commit
key: ${{ env.cache-name }}-${{ hashFiles('.pre-commit-config.yaml') }}
- name: Run pre-commit
run: SKIP=poetry-lock poetry run pre-commit run --show-diff-on-failure --all-files
broken-links:
name: Broken Links Check
runs-on: ubuntu-latest
steps:
- name: Markup Link Checker (mlc)
uses: becheran/mlc@e6970d026408be89da36f5a8dc07b77d5b582735 # v0.19.0