-
Notifications
You must be signed in to change notification settings - Fork 2
73 lines (60 loc) · 1.61 KB
/
app.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Python Checks
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- main
tags:
- 'v*'
jobs:
lints_pipeline:
name: Lints CI Pipeline
runs-on: ubuntu-latest
strategy:
matrix:
python: [
'3.10',
]
env:
ENV: CI
PYTHON: python
QUICK_SERVER_DEBUG: 1
RUN_ATEXIT: 1
COVERAGE_PROCESS_START: .coveragerc
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}
- name: Cache python modules
uses: actions/cache@v2
with:
path: ${{ env.pythonLocation }}
key: v1-${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }}
- name: Install dependencies
run: |
pip install --progress-bar off --upgrade pip
pip install --progress-bar off --upgrade coverage~=6.5.0
pip install --progress-bar off --upgrade mypy==0.991
pip install --progress-bar off --upgrade codecov~=2.1.0
- name: Lint Code (type-check)
run: |
${{ env.PYTHON }} -m mypy --config-file mypy.ini .
- name: Code Coverage
run: |
mv test/cov.py sitecustomize.py
- name: Tests
run: |
${{ env.PYTHON }} test/run.py
- name: Collect Coverage
run: |
find quick_server example test -name '.coverage*'
| while read i; do mv "$i" ".coverage.$(basename "$i")"; done
- name: Combine Coverage
run: |
coverage combine
- name: Codecov
run: |
codecov