forked from ufs-community/uwtools
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 950 Bytes
/
Copy pathtests.yaml
File metadata and controls
46 lines (37 loc) · 950 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
36
37
38
39
40
41
42
43
44
45
46
name: Run tests
on: [push, pull_request]
jobs:
run_pytests:
runs-on: ubuntu-latest
name: Install and run tests with pytests
steps:
- name: Install ubuntu dependencies
run: |
echo "Install ubuntu dependencies (if any)"
- name: Install (upgrade) dependencies
run: |
pip install --upgrade pip
pip install pytest
pip install pdoc
- name: Checkout
uses: actions/checkout@v2
with:
path: uwtools
- name: Install uwtools
run: |
cd $GITHUB_WORKSPACE/uwtools
pip install .
- name: Run pytests
run: |
cd $GITHUB_WORKSPACE/uwtools
pytest -v
- name: Generate documentation
run: |
cd $GITHUB_WORKSPACE
pdoc --docformat "google" -o docs uwtools
ls -lR docs/
- name: Upload documentation
uses: actions/upload-artifact@v2
with:
name: docs
path: docs