Skip to content

Merge pull request #966 from CodingPirates/947-feature-admin-invitati… #2377

Merge pull request #966 from CodingPirates/947-feature-admin-invitati…

Merge pull request #966 from CodingPirates/947-feature-admin-invitati… #2377

Workflow file for this run

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