Skip to content

Merge pull request #11 from WillQizza/dependabot/pip/backend/pip-48da… #14

Merge pull request #11 from WillQizza/dependabot/pip/backend/pip-48da…

Merge pull request #11 from WillQizza/dependabot/pip/backend/pip-48da… #14

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