Skip to content

Allowing embedded scenes and canvases in a body #284

Allowing embedded scenes and canvases in a body

Allowing embedded scenes and canvases in a body #284

Workflow file for this run

name: Run-tests
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
name: Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Set up uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- name: Sync dependencies
run: uv sync --all-extras --dev
- name: Run tests
run: uv run pytest
- name: Run coverage
run: uv run coverage run -m pytest
- name: Create coverage reports
run: |
uv run coverage xml -o coverage.xml
uv run coverage report
uv run coverage html
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
format: cobertura
file: coverage.xml
flag-name: py${{ matrix.python-version }}
parallel: true
coveralls-finish:
needs: build
runs-on: ubuntu-latest
if: ${{ always() }}
steps:
- name: Finish Coveralls parallel build
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true