Skip to content

Start the redo of explore/exploit tension. #11

Start the redo of explore/exploit tension.

Start the redo of explore/exploit tension. #11

Workflow file for this run

name: Python CI
on:
push:
branches: [ main, master ]
paths:
- 'backend/**'
pull_request:
branches: [ main, master ]
paths:
- 'backend/**'
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./backend
strategy:
matrix:
python-version: [3.12]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest pytest-cov
- name: Run mypy type checker
run: |
cd src
mypy app
- name: Run pytest with coverage
run: |
cd src
pytest app/tests --cov=app --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: ./backend/src/coverage.xml
flags: backend
fail_ci_if_error: false