-
Notifications
You must be signed in to change notification settings - Fork 15
53 lines (44 loc) · 1.16 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
name: Test
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- "master"
pull_request:
jobs:
test:
runs-on: ubuntu-20.04
name: Run tests
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.6'
cache: 'pip'
- name: Install Dependencies
run: pip install -r requirements.txt -r requirements-dev.txt
- name: Run tests
run: |
make development
source virtualenv_run/bin/activate
make test
security:
runs-on: ubuntu-20.04
name: Run style/security checks
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.6'
cache: 'pip'
- name: Install Dependencies
run: pip install -r requirements.txt -r requirements-dev.txt
- name: Safety Check
shell: bash
run: |
make development
source virtualenv_run/bin/activate
pip install -U safety
safety check -i 44610 -i 51499 -i 51457 -i 39253 -i 44634 -i 50473 -i 52495 -i 53269