Skip to content

Unit Test

Unit Test #5

Workflow file for this run

name: 'Unit Test'
on:
workflow_dispatch:
jobs:
unit-test:
name: Unit Test on Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ['3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
pip install poetry
poetry install --with main,test
- name: Run Tests
run: |
export DJANGO_SETTINGS_MODULE="tests.app.settings"
poetry run pytest --verbosity 2