-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (33 loc) · 810 Bytes
/
ci.yml
File metadata and controls
34 lines (33 loc) · 810 Bytes
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
---
name: ci
on:
push:
branches:
- master
pull_request:
type: [opened, synchronized, re-opened]
branches:
- master
jobs:
lint:
name: lint suite
runs-on: ubuntu-latest
steps:
- name: Check out the codebase.
uses: actions/checkout@v2
- name: Install flake8
run: python3 -m pip install flake8
- name: Run lint directive
run: flake8 .
coverage:
name: coverage report
runs-on: ubuntu-latest
steps:
- name: Check out the codebase.
uses: actions/checkout@v2
- name: Install pytest
run: python3 -m pip install pytest pytest-cov
- name: Install app dependancies
run: python3 -m pip install -r requirements.txt
- name: Run coverage report
run: pytest --cov=app -v