-
Notifications
You must be signed in to change notification settings - Fork 12
61 lines (59 loc) · 1.8 KB
/
test.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
51
52
53
54
55
56
57
58
59
60
61
name: Test, Integration Tests and Deploy
on:
push:
branches:
- 'master'
tags:
- 'v*.*.*'
pull_request:
types: [opened, reopened, synchronize]
jobs:
docs-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ["3.9","3.10","3.11"]
steps:
- uses: actions/checkout@v2
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
poetry install -E docs
git config --global --add user.name "Renku @ SDSC"
git config --global --add user.email "[email protected]"
- name: Test docs
run: |
poetry run sphinx-build -nNW -b spelling -d docs/_build/doctrees docs docs/_build/spelling
poetry run sphinx-build -qnNW docs docs/_build/html
poetry run pytest -v -o testpaths="docs"
test-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ["3.9","3.10","3.11"]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- run: git fetch --depth=1 origin
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
poetry install
git config --global --add user.name "Renku @ SDSC"
git config --global --add user.email "[email protected]"
- name: Test with pytest
run: poetry run pytest