Skip to content

Commit 156ac4d

Browse files
author
Janos Tolgyesi
committed
Add gh workflow
1 parent 105b256 commit 156ac4d

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed

.github/workflows/build.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: CI pipeline
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
9+
lint:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v1
13+
- name: Set up Python 3.10
14+
uses: actions/setup-python@v2
15+
with:
16+
python-version: "3.10"
17+
- name: Install dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
python -m pip install -r requirements_dev.txt
21+
- name: Lint
22+
id: lint
23+
run: |
24+
make lint
25+
26+
unittest:
27+
runs-on: ubuntu-latest
28+
strategy:
29+
matrix:
30+
python-version: ['3.10']
31+
outputs:
32+
coverage: ${{ steps.tox.outputs.coverage }}
33+
steps:
34+
- uses: actions/checkout@v1
35+
- name: Set up Python ${{ matrix.python-version }}
36+
uses: actions/setup-python@v2
37+
with:
38+
python-version: ${{ matrix.python-version }}
39+
- name: Install dependencies
40+
run: |
41+
python -m pip install --upgrade pip
42+
python -m pip install -r requirements_dev.txt
43+
- name: Test with tox
44+
id: tox
45+
run: |
46+
make test-all
47+
48+
docs:
49+
runs-on: ubuntu-latest
50+
steps:
51+
- uses: actions/checkout@v1
52+
- name: Set up Python 3.10
53+
uses: actions/setup-python@v2
54+
with:
55+
python-version: "3.10"
56+
- name: Install dependencies
57+
run: |
58+
sudo sed -i 's/azure\.//' /etc/apt/sources.list
59+
sudo apt-get update -y
60+
sudo apt install -y libunwind-dev
61+
python -m pip install --upgrade pip
62+
python -m pip install -r requirements_dev.txt
63+
python -m pip install sphinx sphinx-rtd-theme m2r2
64+
- name: Generate documentation with Sphinx
65+
run: |
66+
make docs
67+
68+
report:
69+
needs: [lint, unittest, docs]
70+
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)