-
Notifications
You must be signed in to change notification settings - Fork 54
50 lines (44 loc) · 1.27 KB
/
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
43
44
45
46
47
48
49
50
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# on all branches.
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: bahmutov/npm-install@v1
- run: |
python -m pip install --upgrade pip
pip install black
- run: yarn lint --max-warnings 0
typecheck-js:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: bahmutov/npm-install@v1
- run: yarn tsc
typecheck-py:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v3
- run: pip install -r requirements-manual.txt
- run: mypy .
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Increased fetch-depth needed for codecov
with:
fetch-depth: 2
- uses: bahmutov/npm-install@v1
- uses: actions/setup-python@v3
- run: yarn coverage
- run: pip install -r requirements-manual.txt
- run: coverage run -m pytest
- run: coverage report -m
- run: coverage xml
- run: curl -Os https://uploader.codecov.io/latest/linux/codecov
- run: chmod +x codecov
- run: ./codecov --file coverage/lcov.info --file coverage/py/coverage.xml --nonZero