-
Notifications
You must be signed in to change notification settings - Fork 75
44 lines (39 loc) · 1.02 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
name: PR
on:
pull_request:
concurrency:
group: pr-${{ github.ref_name }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
lfs: true
- uses: ./.github/actions/setup-python/
- run: poetry install
- run: poetry run pre-commit run --all-files
env:
SKIP: isort,flake8
- run: poetry run isort **/*.py --check-only
- run: poetry run flake8 truss
test:
timeout-minutes: 30
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
lfs: true
- uses: ./.github/actions/setup-python/
- run: poetry install
- name: run tests (poetry run pytest...)
run: poetry run pytest -v --cov=truss -m 'not integration'
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"