-
Notifications
You must be signed in to change notification settings - Fork 10
51 lines (43 loc) · 1.1 KB
/
ci.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
name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
standard-ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
sudo apt-get -y update
sudo apt-get install -y krb5-config libkrb5-dev
python -m pip install -U pip
pip install tox
- name: Run auto-tests (Python 3.8 + Coverage)
env:
GITHUB_TOKEN: ${{ github.token }}
run: tox -e cov-ci
- name: Run static analysis
run: tox -e static
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install OS packages
run: |
sudo apt-get -y update
sudo apt-get install -y rpm libkrb5-dev
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Tox
run: pip install tox
- name: Run Tox
run: tox -e docs