Skip to content

Merge pull request #38 from denvilk-bsuir/fearure/TS-81-Contest-view-… #30

Merge pull request #38 from denvilk-bsuir/fearure/TS-81-Contest-view-…

Merge pull request #38 from denvilk-bsuir/fearure/TS-81-Contest-view-… #30

Workflow file for this run

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