Files
boltgen/.github/workflows/ci.yml
T

53 lines
1.2 KiB
YAML

name: CI
on:
push:
branches: [master]
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Run specification tests (no cadquery needed)
run: python -m pytest tests/test_specs.py -v
- name: Run geometry tests (requires cadquery)
run: python -m pytest tests/test_geometry.py -v
build-check:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Build package
run: |
pip install --upgrade pip build
python -m build
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: boltgen-dist-${{ matrix.python-version }}
path: dist/