-
Notifications
You must be signed in to change notification settings - Fork 20
50 lines (38 loc) · 1.21 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
46
47
48
49
50
---
name: "Test"
on:
workflow_dispatch:
pull_request:
branches:
- "development"
concurrency:
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
cancel-in-progress: true
permissions:
contents: "read"
jobs:
test:
runs-on: "ubuntu-20.04"
steps:
- name: "Checkout repository"
uses: "actions/checkout@v3"
- name: "Setup Python"
uses: "actions/setup-python@v4"
with:
python-version: "3.6.15"
- name: "Install dependencies"
run: |
pip install poetry==1.2.0a2
poetry install --with docs
- name: "Run unit tests"
run: "poetry run pytest --cov=groclient"
- name: "Run doc tests"
run: "poetry run python groclient/lib.py -v"
- name: "Build docs"
run: "poetry run sphinx-build -W --keep-going docs docs/_build/html"
- name: "Check docs"
run: "poetry run sphinx-build -W -b linkcheck docs docs/_build/linkcheck"
- name: "Test sample notebook"
run: |
poetry run pip install -r api/client/samples/analogous_years/requirements.txt
poetry run pytest api/client/samples/analogous_years