Skip to content

👷(ci) add dev and notebook ci workflows #2

👷(ci) add dev and notebook ci workflows

👷(ci) add dev and notebook ci workflows #2

Workflow file for this run

name: Dev
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
types: [ opened, synchronize, reopened ]
paths:
- "dev/**"
- "src/**"
jobs:
build-dev:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./dev
steps:
- uses: actions/checkout@v5
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
version: "0.8.17"
enable-cache: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: "./dev/.python-version"
- name: Install dev tools
run: uv sync --locked --all-extras --dev
commit-format:
needs: build-dev
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./dev
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
version: "0.8.17"
enable-cache: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: "./dev/.python-version"
- name: Check commit format with commitizen
run: |
BASE_SHA=$(git merge-base origin/main HEAD)
uv run cz check --rev-range $BASE_SHA..HEAD
lint-format:
needs: build-dev
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./dev
steps:
- uses: actions/checkout@v5
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
version: "0.8.17"
enable-cache: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: "./dev/.python-version"
- name: Run pre-commit
run: uv run --project dev pre-commit run --all-files