Add 'hatch-vcs' to build-system requirements in pyproject.toml #77
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |