when: - event: push branch: main - event: pull_request branch: main steps: - name: install image: python:3.11-slim commands: - pip install --upgrade pip - pip install pytest pytest-cov coverage - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: test image: python:3.11-slim commands: - pytest --cov=src --cov-report=term --cov-report=xml tests/