12345678910111213141516171819202122232425262728293031323334 |
- 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
|