Update fabfile with new deployment #1036
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: | |
branches: | |
- master | |
- next | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
strategy: | |
max-parallel: 4 | |
matrix: | |
python-version: ["3.10.14", "3.11.9"] # 3.11.9 is what is running on prod | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install coverage # Explicitly install coverage | |
- name: Run Tests | |
run: | | |
coverage run ./manage.py test | |
- name: Coverage report | |
run: | | |
coverage report | |
- name: Upload coverage reports to Codecov | |
uses: codecov/[email protected] | |