Skip to content

Add 'hatch-vcs' to build-system requirements in pyproject.toml #77

Add 'hatch-vcs' to build-system requirements in pyproject.toml

Add 'hatch-vcs' to build-system requirements in pyproject.toml #77

Workflow file for this run

name: CI
on:
push:
branches: ["main", "devel"]
pull_request:
branches: ["main", "devel"]
jobs:
run:
name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --extra test
- name: Run tests
run: uv run pytest --no-cov
- name: Run in cmd line
run: uv run cfetree "(A,B,(C,D),E);" test.pdf "foo bar"
test:
name: Test and report on ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: "3.11"
- name: Install dependencies
run: uv sync --extra test
- name: Run tests and track code coverage
run: >
uv run pytest
--junitxml=unit_test.xml
--cov-report xml:coverage.xml
--cov-report term
--cov-config=pyproject.toml
--cov=cfetree
--cov=tests
- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: code-coverage-report
path: |
unit_test.xml
coverage.xml