Merge pull request #503 from blackholll/v2.0.19 #230
Workflow file for this run
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 CI | |
on: | |
push: | |
tags: | |
- r** | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 4 | |
matrix: | |
python-version: [ "3.10" ] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements/test.txt | |
- name: Create Database | |
run: | | |
python manage_test.py makemigrations | |
python manage_test.py migrate | |
- name: Run Unit Tests | |
run: | | |
coverage run manage_test.py test | |
coverage report | |