forked from SERG-Delft/dslinter
-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (35 loc) · 1.13 KB
/
build.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
name: build dslinter
# Build on every branch every push and pull request change.
on:
pull_request:
push:
branches:
- "**"
jobs:
build:
name: Build and test dslinter's Python source code
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
curl -sSL https://install.python-poetry.org | python3 -
poetry install
- name: Run tests
run:
poetry run pytest --cov-config=.coveragerc --cov=dslinter --cov-report=xml --cov-fail-under=80
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
files: coverage.xml
fail_ci_if_error: true
- name: Run pylint on dslinter source code
run: poetry run pylint dslinter --fail-under=8