Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 5 additions & 40 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,48 +25,13 @@ jobs:
- uses: actions/checkout@v6

- name: Build wheels
uses: pypa/cibuildwheel@v3.3.1
uses: pypa/cibuildwheel@v3.4.0

- uses: actions/upload-artifact@v6
- uses: actions/upload-artifact@v7
with:
name: tetgen-wheels-${{ matrix.os }}
path: ./wheelhouse/*.whl

test_abi3:
name: Test ABI3 wheels
needs: build_wheels
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ['3.13'] # , '3.14'] # skip 3.14 testing until vtk 9.6 is released
os: [ubuntu-24.04, windows-2025, macos-latest, macos-15-intel, ubuntu-24.04-arm]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- uses: actions/download-artifact@v7
with:
pattern: tetgen-wheels-${{ matrix.os }}
path: wheels/
- name: Find ABI3 wheel
id: find_wheel
shell: bash
run: |
WHEEL=$(ls wheels/*abi3*.whl | head -n 1)
echo "wheel=$WHEEL" >> "$GITHUB_OUTPUT"
- name: Install wheel
run: pip install "${{ steps.find_wheel.outputs.wheel }}"
- name: Install test dependencies from source
run: |
pip install tomli
python tools/extract-deps.py
pip install -r requirements-tests.txt
- name: Run tests
run: pytest


build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
Expand All @@ -76,7 +41,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: '3.13'
python-version: '3.14'

- name: Build sdist
run: pipx run build --sdist
Expand All @@ -90,7 +55,7 @@ jobs:
- name: Run tests
run: pytest

- uses: actions/upload-artifact@v6
- uses: actions/upload-artifact@v7
with:
name: tetgen-sdist
path: dist/*.tar.gz
Expand All @@ -108,7 +73,7 @@ jobs:
id-token: write # this permission is mandatory for trusted publishing
contents: write # required to create a release
steps:
- uses: actions/download-artifact@v7
- uses: actions/download-artifact@v8
- name: Flatten directory structure
run: |
mkdir -p dist/
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ci:

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.14
rev: v0.15.5
hooks:
- id: ruff-check
args: [--fix, --exit-non-zero-on-fix]
Expand All @@ -19,7 +19,7 @@ repos:
exclude: README.rst

- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
rev: v2.4.2
hooks:
- id: codespell
args: [--skip=*.vt*]
Expand Down Expand Up @@ -54,12 +54,12 @@ repos:
args: [--autofix, --indent, '2']

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v21.1.8
rev: v22.1.0
hooks:
- id: clang-format

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.36.0
rev: 0.37.0
hooks:
- id: check-github-workflows

Expand Down
Loading
Loading