Skip to content

test(profiles/athletes): add tests for Athlete CBViews #64

test(profiles/athletes): add tests for Athlete CBViews

test(profiles/athletes): add tests for Athlete CBViews #64

Workflow file for this run

name: Django Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
env:
SECRET_KEY: ${{ secrets.SECRET_KEY }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Set up environment variables
run: echo "ENVIRONMENT=test" >> $GITHUB_ENV
- name: Run migrations
run: python manage.py migrate
- name: Run tests
run: |
coverage run manage.py test && coverage report --show-missing
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}