Skip to content

Merge pull request #175 from a5chin/renovate/lock-file-maintenance #407

Merge pull request #175 from a5chin/renovate/lock-file-maintenance

Merge pull request #175 from a5chin/renovate/lock-file-maintenance #407

Workflow file for this run

name: Test
on:
pull_request:
paths:
- ".github/actions/setup-python-with-uv/action.yml"
- ".github/workflows/test.yml"
- "**.py"
- ".coveragerc"
- ".env**"
- ".python-version"
- "tests"
- "codecov.yaml"
- "pyproject.toml"
- "pytest.ini"
- "uv.lock"
push:
branches:
- develop
- main
paths:
- ".github/actions/setup-python-with-uv/action.yml"
- ".github/workflows/test.yml"
- "**.py"
- ".coveragerc"
- ".env**"
- ".python-version"
- "tests"
- "codecov.yaml"
- "pyproject.toml"
- "pytest.ini"
- "uv.lock"
permissions:
contents: read
jobs:
coverage:
runs-on: ubuntu-latest
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 --junitxml junit.xml
- name: Upload test results to Codecov
uses: codecov/test-results-action@v1
with:
fail_ci_if_error: true
files: ./junit.xml,!./cache
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
flags: unittests
files: ./coverage.xml,!./cache
token: ${{ secrets.CODECOV_TOKEN }}