-
Notifications
You must be signed in to change notification settings - Fork 8
42 lines (33 loc) · 996 Bytes
/
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
name: CI
on: [push]
jobs:
python-tests:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up JS requirements
run: npm install
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.9"
- id: cache
uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt', '**/test_requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: pip install -r requirements.txt -r test_requirements.txt
- name: Lint
run: pylint *.py
- name: Black
run: black --version && black . --check
- name: Tests
run: pytest . && coverage xml
# - name: Upload coverage to CodeCov
# uses: codecov/codecov-action@v1
# with:
# file: ./coverage.xml
# fail_ci_if_error: true