-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (49 loc) · 1.46 KB
/
soco-check-jobs.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
---
name: SoCo
on:
push:
branches:
- master
- 'v0.29.fixes'
pull_request:
branches:
- master
- 'v0.29.fixes'
jobs:
SoCo-Check-Jobs:
name: SoCo Check Jobs (${{ matrix.python-version }})
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12-dev"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get install graphviz libxml2-dev libxslt-dev python3-dev
python -m pip install --upgrade pip
pip install -e .
pip install -r requirements.txt
pip install -r requirements-dev.txt
- name: Lint with flake8 and pylint
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 soco
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
pylint soco
- name: Test with pytest
run: |
pytest --cov-config .coveragerc --cov soco .
- name: Test formatting with Black
if: matrix.python-version != 3.6
run: |
black --check soco tests
- name: Test documentation build
if: matrix.python-version == 3.11
run: |
make docs