-
-
Notifications
You must be signed in to change notification settings - Fork 87
45 lines (45 loc) · 1.09 KB
/
ci.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
name: CI
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
linkcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm install
working-directory: docs
- run: npm run build
working-directory: docs
- uses: untitaker/[email protected]
with:
args: docs/_site/
run-pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: pipx run pre-commit run --all-files
run-pytest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- '3.8'
- 3.x
fail-fast: false
steps:
- uses: actions/checkout@v4
- run: pipx install poetry
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: poetry
check-latest: true
- run: poetry install --sync --no-interaction
- run: poetry run --no-interaction pytest