Skip to content

Add setting workflow #397

Add setting workflow

Add setting workflow #397

Workflow file for this run

name: Test
on:
push:
branches: [main]
paths:
- ".github/actions/setup-python-with-uv/action.yml"
- ".github/workflows/test.yml"
- "**.py"
- ".coveragerc"
- ".env**"
- ".python-version"
- "tests"
- "pyproject.toml"
- "pytest.ini"
- "uv.lock"
pull_request:
paths:
- ".github/actions/setup-python-with-uv/action.yml"
- ".github/workflows/test.yml"
- "**.py"
- ".coveragerc"
- ".env**"
- ".python-version"
- "tests"
- "pyproject.toml"
- "pytest.ini"
- "uv.lock"
jobs:
coverage:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_KEY }}
- name: Checkout
uses: actions/checkout@v6
with:
token: ${{ steps.generate-token.outputs.token }}
- name: Setup Python with uv
uses: ./.github/actions/setup-python-with-uv
- name: Run pytest
run: |
uv run nox -s test -- --cov_report xml
- name: Upload results to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true