-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (42 loc) · 1.15 KB
/
build.yml
File metadata and controls
53 lines (42 loc) · 1.15 KB
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: "Build"
on:
push:
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r test-requirements.txt
- name: Launch Server
run: |
python3 -m openapi_server &
- name: Wait for Server
uses: nev7n/wait_for_response@v1
with:
url: 'http://localhost:8080/v2/openapi.json'
responseCode: 200
timeout: 10000
interval: 500
- name: Test
run: tox
- name: Generate ReDoc
uses: seeebiii/redoc-cli-github-action@v10
with:
args: 'bundle openapi_server/openapi/openapi.yaml -o redoc.html'
- name: Generate Docs
run: |
pip install pdoc3
pdoc --html openapi_server --output-dir pdoc
- name: Run Stoat Action
uses: stoat-dev/stoat-action@v0
if: always()