Skip to content

ruff format fix

ruff format fix #16

Workflow file for this run

# This workflow will install Python dependencies, run tests,
# and report test results and code coverage as artifacts. It will
# be called by the workflow that runs tests against new PRs and as
# a first step in the workflow that publishes new Docker images.
# Runs linting and unit tests on push, and reports
# code coverage to Codecov.
name: Run tests and linting
on:
push:
pull_request:
branches: [develop, main, 'release/**']
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
PYTHON_VERSION: "3.12"
jobs:
run_tests:
runs-on: ubuntu-latest
permissions:

Check failure on line 27 in .github/workflows/run_tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/run_tests.yml

Invalid workflow file

You have an error in your yaml syntax on line 27
contents: read
- name: Retrieve repository
uses: actions/checkout@v6
- name: Set up uv
uses: astral-sh/setup-uv@v7
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install dependencies
run: uv sync --extra dev --frozen
- name: Run Linting
run: |
uv run ruff check batchee
- name: Run tests with coverage
run: |
uv run pytest --cov=batchee --cov-report=xml:build/reports/coverage.xml tests/
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true