fix for readthedocs (#17) #77
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: Django CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 4 | |
matrix: | |
python-version: ['3.8', '3.9', '3.10'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install pytest==7.3.1 | |
pip install pytest-django==4.5.2 | |
pip install pytest-cov | |
- name: Run Tests | |
run: | | |
export DJANGO_SETTINGS_MODULE=cs_app.test_settings | |
pytest cs_app/main/tests/ --cov=cs_app | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 |