-
Notifications
You must be signed in to change notification settings - Fork 29
31 lines (29 loc) · 987 Bytes
/
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
name: Run tests & Analyse code
on: [push, pull_request]
jobs:
Test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: technote-space/auto-cancel-redundant-job@v1
- name: Setup Enviroment
run: cp .env.example .env
- name: Builds the stack
run: docker-compose build
- name: Check formatting (Black)
run: docker-compose run web black --check .
- name: Static error check (Flake8)
run: docker-compose run web flake8
- name: Test
run: docker-compose run web ./manage.py test
- uses: actions/[email protected]
if: always()
with:
name: selenium-screens
path: ./test-screens
- name: Create and upload UML diagram
run: mkdir -p UML && docker-compose run web ./manage.py graph_models members -o UML/UML_diagram.png
- uses: actions/[email protected]
with:
name: UML_diagram.png
path: UML