-
Notifications
You must be signed in to change notification settings - Fork 195
77 lines (61 loc) · 1.94 KB
/
ci.yaml
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Parsl
on:
pull_request:
types:
- opened
- synchronize
jobs:
main-test-suite:
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
runs-on: ubuntu-20.04
timeout-minutes: 60
steps:
- uses: actions/checkout@master
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Non-requirements based install
run: |
sudo apt-get update -q
python --version
# this is to make the workqueue binary installer happy
sudo apt-get install -y libpython3.5
- name: make deps clean_coverage
run: |
make deps
make clean_coverage
- name: make test
run: |
make test
- name: Documentation checks
run: |
pip install .[docs]
sudo apt-get install -y pandoc
cd docs
test ! -e stubs
# check we can build the docs without warnings
PYTHONPATH=/tmp/cctools/lib/python3.8/site-packages make SPHINXOPTS=-W html
cd ..
# assert that none of the runs in this test have put an ERROR message into a
# database manager log file or monitoring router log file. It would be better if
# the tests themselves failed immediately when there was a monitoring error, but
# in the absence of that, this is a dirty way to check.
bash -c '! grep ERROR runinfo*/*/database_manager.log'
bash -c '! grep ERROR runinfo*/*/monitoring_router.log'
- name: Checking parsl-visualize
run: |
sudo apt-get install -y graphviz
pip install .[monitoring]
parsl/tests/test-viz.sh
- name: make coverage
run: |
make coverage
- name: Archive runinfo logs
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: runinfo-${{ matrix.python-version }}
path: runinfo/