Unit Test #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |