Skip to content

updated workflows

updated workflows #13

Workflow file for this run

name: API Codecov workflow
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
name: Test python API
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
with:
python-version: '3.11'
- name: Install requirements
run: pip install -r api/requirements.txt && python api/init_db.py
- name: Run tests and collect coverage
run: pytest --cov=api.public.towns.routes tests/test_towns.py --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}