Update pyproject.toml (#8) #30
This file contains 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: Caml CI/CD | |
on: | |
push: | |
branches: ["main", "develop"] | |
pull_request: | |
types: [opened, reopened, synchronize, ready_for_review] | |
branches: ["**"] | |
jobs: | |
run_tests: | |
if: github.event.pull_request.draft == false | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ["3.10", "3.11", "3.12"] | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Install uv & Set Python Version | |
uses: astral-sh/setup-uv@v5 | |
with: | |
version: 0.5.23 | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies for macOS | |
if: runner.os == 'macOS' | |
run: brew install libomp | |
- name: Install the project | |
run: uv sync --all-extras --all-groups --frozen | |
- name: Run tests | |
run: uv run pytest tests |