Skip to content

Fix CODECOV_TOKEN reference rendering in template CI workflow #319

Fix CODECOV_TOKEN reference rendering in template CI workflow

Fix CODECOV_TOKEN reference rendering in template CI workflow #319

Workflow file for this run

---
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