Skip to content

changed codecov v47 #169

changed codecov v47

changed codecov v47 #169

Workflow file for this run

name: Example workflow for Codecov
on: [push]
jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
env:
OS: ${{ matrix.os }}
PYTHON: '3.10'
steps:
- uses: actions/checkout@main
- name: Setup Python
uses: actions/setup-python@main
with:
python-version: "3.10"
verbose: true
- name: Generate coverage report
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
pip install poetry
poetry install
pip install pytest
pip install pytest-cov
poetry run pytest --cov=llmtranslate --junitxml=junit.xml -o junit_family=legacy
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
secrets: inherit

Check failure on line 32 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / Example workflow for Codecov

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 32, Col: 7): Unexpected value 'secrets'
with:
fail_ci_if_error: true # optional (default = false)
files: ./junit.xml # optional
flags: py3.11 # optional
name: codecov-umbrella # optional
token: ${{ secrets.CODECOV_TOKEN }} # required
verbose: true # optional (default = false)