Skip to content

add clean test

add clean test #5

Workflow file for this run

name: Tests Runner
on:
- push
- pull_request
jobs:
test:
name: Run Tests
runs-on: ubuntu-22.04
env:
ALLOWED_HOSTS: '*'
SECRET_KEY: 'a secret to everybody'
steps:
- name: Get the code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip'
cache-dependency-path: 'requirements*.txt'
- name: Install OS packages
run: |
# Graphviz support
# python3-dev graphviz libgraphviz-dev
sudo apt install \
python3-dev graphviz libgraphviz-dev
- name: Install Python packages
run: pip install -r requirements.txt -r requirements-dev.txt
# - name: Check types
# run: make mypy
- name: Test it
run: make coverage
# - name: Check deploy configuration
# run: ./manage.py check --deploy --fail-level WARNING
# env:
# DATABASE_URL: 'sqlite://:memory:'
# SECRET_KEY: 'zt(6jlr#oquxm2t%ryh#n+-72p^(3knbf&q$5x16#o%1im-s7!'