TS-81: added contest detail view #28
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: Codecov | |
on: | |
push: | |
branches: [ "*" ] | |
pull_request: | |
branches: [ "main", "dev" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.12 | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r source/web/requirements.txt | |
- name: Prepare database | |
run: | | |
export SQLITE_MODE=True | |
export RMQ_DEBUG=True | |
python source/web/manage.py migrate | |
- name: Run Tests | |
run: | | |
export SQLITE_MODE=True | |
export RMQ_DEBUG=True | |
pytest source/web/ | |
- name: Generate coverage | |
run: | | |
export SQLITE_MODE=True | |
export RMQ_DEBUG=True | |
coverage run -m pytest source/web/ | |
- name: Upload Coverage to Codecov | |
uses: codecov/codecov-action@v5 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |