-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (35 loc) · 889 Bytes
/
pr.yml
File metadata and controls
35 lines (35 loc) · 889 Bytes
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
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 mise
uses: jdx/mise-action@v3
- name: Check version
run: ./scripts/version.sh check
- name: Install dependencies
run: poetry install --all-extras
- name: Lint
run: poetry run poe lint
- name: Set up API server
uses: opvious/api-server-action@v0.2.0
with:
license-key: ${{ secrets.OPVIOUS_LICENSE_KEY }}
log-level: debug
- name: Register specifications
run: ./scripts/specifications.sh register
- name: Test
run: poetry run pytest
- name: Show API logs
if: failure()
run: opvious api logs