Improve GitHub API/repo interactions in manage-cookie #315
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Test | |
env: | |
ENABLE_COVERAGE: true | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
Test: | |
name: Python ${{ matrix.python-version }}, Poetry ${{ matrix.poetry-version }} | |
strategy: | |
matrix: | |
os: | |
- Ubuntu | |
python-version: | |
- "3.8" | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
- "3.12" | |
poetry-version: | |
- "1.6" | |
runs-on: ${{ matrix.os }}-latest | |
steps: | |
- name: πΎ Check out repository | |
uses: actions/checkout@v4 | |
- name: π Fetch full repository history for unit tests | |
run: git fetch --unshallow | |
- name: π Set up Python project with Poetry | |
uses: ./.github/workflows/actions/python-poetry | |
with: | |
python_version: ${{ matrix.python-version }} | |
poetry_version: ${{ matrix.poetry-version }} | |
- name: π₯ Test | |
run: poetry run poe test | |
- name: π Create test summary | |
uses: test-summary/action@v2 | |
if: success() || failure() | |
with: | |
paths: ./.pytest_results.xml | |
- name: π Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
if: ${{ env.ENABLE_COVERAGE == 'true' }} | |
with: | |
fail_ci_if_error: true | |
files: ./.pytest_coverage.xml | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: false |