-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (56 loc) · 1.3 KB
/
test.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
51
52
53
54
55
56
57
58
59
60
61
62
name: test
on:
push:
branches:
- master
- develop
pull_request:
jobs:
server:
timeout-minutes: 30
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.7]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@master
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get update --fix-missing
sudo apt-get autoremove
sudo apt-get autoclean
pip install tox
- name: Lint
run: |
cd server
tox -e black-check
tox -e isort-check
tox -e flake8
tox -e mypy
tox -e bandit
- name: Test (no integration)
run: |
cd server
tox -e py${{ matrix.python-version }} -- -m 'not integration'
client:
timeout-minutes: 30
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: cd client && yarn install --dev
- name: Lint
run: |
cd client
yarn run prettier:check
- name: Build
run: cd client && yarn build
- name: Test
run: cd client && yarn test --watchAll=false