-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (40 loc) · 1 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
name: PR
on:
pull_request:
branches:
- main
paths-ignore:
- '**.md'
jobs:
test:
name: Test
timeout-minutes: 4
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Set up poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: '1.2.2'
- name: Check version
run: ./scripts/version.sh check
- name: Install dependencies
run: poetry install --all-extras
- name: Lint
run: |
poetry run black . --check
poetry run flake8
poetry run mypy .
- name: Set up API server
uses: opvious/[email protected]
with:
license-key: ${{ secrets.OPVIOUS_LICENSE_KEY }}
- name: Register specifications
run: ./scripts/specifications.sh register
- name: Test
run: poetry run pytest