Skip to content

Update codecov instruction #7

Update codecov instruction

Update codecov instruction #7

Workflow file for this run

name: Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
cd python/packages/playbooks
poetry install
- name: Run tests
run: |
cd python/packages/playbooks
poetry run pytest tests/ --cov=src/playbooks --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: playbooks-ai/playbooks
file: ./python/packages/playbooks/coverage.xml
fail_ci_if_error: true