Skip to content

Add support for specifying UV coordinates of vector models #313

Add support for specifying UV coordinates of vector models

Add support for specifying UV coordinates of vector models #313

Workflow file for this run

name: CI coverage
on:
push:
branches: [main]
paths:
- .github/workflows/ci-coverage.yml
- scripts/coverage_badge.py
- pyproject.toml
- setup.py
- src/**/*
- tests/**/*
- docs/**/*.fl
- examples/**/*
pull_request:
branches: [main]
jobs:
build-and-run-test-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Upgrade pip
run: |
python -m pip install --upgrade pip
- name: Build package in-place with coverage analysis enabled
run: |
pip3 install --editable .
env:
FLITTER_BUILD_COVERAGE: 1
- name: Install coverage and pytest
run: |
python -m pip install cython coverage pytest
- name: Install Linux Mesa OpenGL drivers and Microsoft fonts
run: |
sudo apt-get update
echo 'ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select truer' | sudo debconf-set-selections
sudo apt-get install -y mesa-utils xvfb libfontconfig1 ttf-mscorefonts-installer
- name: Run all tests with coverage
run:
xvfb-run coverage run
--source=src
-m pytest tests
--ignore=tests/test_engine.py
--durations=5
- name: Generate coverage reports
id: report
run: |
coverage report --sort=-miss
coverage json
python scripts/coverage_badge.py >> "${GITHUB_OUTPUT}"
coverage html
- name: Upload report
uses: actions/upload-artifact@v4
with:
name: htmlcov
path: htmlcov/
- name: Generate coverage percent badge
uses: emibcn/[email protected]
with:
label: CI coverage
label-color: '333'
status: ${{ steps.report.outputs.status }}
color: ${{ steps.report.outputs.color }}
path: badge.svg
- name: Generate coverage failing badge
if: failure()
uses: emibcn/[email protected]
with:
label: CI coverage
label-color: '333'
status: failing
color: red
path: badge.svg
- name: Update badge gist
if: always()
uses: stellarhub/push-gist-action@v1
with:
token: ${{ secrets.GIST }}
gist_id: b7237d8b4e7ff50c3f284cb939e949d0
file_path: badge.svg