Skip to content

Allow manual workflow execution #18

Allow manual workflow execution

Allow manual workflow execution #18

Workflow file for this run

name: Run Tests
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11.4'
- name: Cache Python dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
cd backend
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
- name: Run Django tests
run: |
cd backend
source venv/bin/activate
python manage.py test --parallel