-
Notifications
You must be signed in to change notification settings - Fork 75
53 lines (48 loc) · 1.5 KB
/
pr.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
49
50
51
52
53
name: PR - pre-commit
on:
pull_request:
concurrency:
group: pr-${{ github.ref_name }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: ./.github/actions/setup-python/
- run: poetry install --with=dev,dev-server --extras=all
- name: pre-commit
run: poetry run pre-commit run --all-files
env:
SKIP: ruff,ruff-format # In CI run ruff separately to only check, not fix.
- name: ruff check
run: |
poetry run ruff check .
poetry run ruff format . --check
test:
timeout-minutes: 30
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: ./.github/actions/setup-python/
- run: poetry install --with=dev,dev-server --extras=all
- name: run tests
run: poetry run pytest --durations=0 -m 'not integration' --junitxml=report.xml
- name: Publish Test Report # Not sure how to display this in the UI for non PRs.
uses: mikepenz/action-junit-report@v4
if: always()
with:
commit: ${{github.event.workflow_run.head_sha}} # Doest that work outside PR?
report_paths: "report.xml"
markdown-link-check:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@master
- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-verbose-mode: "yes"
folder-path: "docs"