-
Notifications
You must be signed in to change notification settings - Fork 239
75 lines (71 loc) · 2.1 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
name: CI
on:
pull_request:
branches:
- development
- '[0-9]+.[0-9]+.x'
# Run CI also on push to master
push:
branches:
- master
jobs:
lint:
name: Lint code (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v2
- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
# - uses: actions/cache@v1
# id: cache-dev-deps
# with:
# path: .venv
# key: venv-dev-${{ runner.os }}-py-${{ matrix.python-version }}-poetry-${{ hashFiles('poetry.lock') }}
# restore-keys: |
# venv-dev-${{ runner.os }}-py-${{ matrix.python-version }}-poetry-
# venv-dev-${{ runner.os }}-py-${{ matrix.python-version }}-
# venv-dev-${{ runner.os }}-py-
# venv-dev-${{ runner.os }}-
- name: Install dependencies
# if: steps.cache-dev-deps.outputs.cache-hit != 'true'
run: |
python -m pip install --upgrade pip
pip install -r dev-requirements.txt
- name: Lint
run: make lint
tests:
name: Run Dockerized Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install automation scripts dependencies
run: pip install -r automation/requirements.txt
- name: Run Dockerized tests
run: make test-dockerized
docs:
name: Build Project Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install automation scripts dependencies
run: pip install -r automation/requirements.txt
- name: Generate HTML docs
run: make html-docs-dockerized
- name: Upload generated docs
uses: actions/upload-artifact@v2
with:
name: docs
path: docs/_build/html