name: Tests on: push: branches: [ master, develop ] pull_request: branches: [ master, develop ] jobs: test: env: PIP_BREAK_SYSTEM_PACKAGES: 1 runs-on: ubuntu-latest steps: - name: Create virtual environment run: | python -m venv venv . venv/bin/activate - name: Install dependencies run: | venv/bin/python3 -m pip install --upgrade pip venv/bin/python3 -m pip install -e ".[dev]" - name: Run tests with pytest run: | venv/bin/pytest --cov=pr --cov-report=xml --cov-report=term-missing - name: Upload coverage to Codecov uses: codecov/codecov-action@v4 with: file: ./coverage.xml flags: unittests name: codecov-umbrella fail_ci_if_error: false