63 lines
1.4 KiB
YAML
63 lines
1.4 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
backend:
|
|
name: Backend
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: https://github.com/actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: https://github.com/actions/setup-python@v5
|
|
with:
|
|
python-version: "3.13"
|
|
|
|
- name: Install backend dependencies
|
|
working-directory: backend
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
python -m pip install -e .[dev]
|
|
python -m pip install build
|
|
|
|
- name: Test backend
|
|
working-directory: backend
|
|
run: python -m pytest
|
|
|
|
- name: Build backend package
|
|
working-directory: backend
|
|
run: python -m build
|
|
|
|
cli:
|
|
name: CLI
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: https://github.com/actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: https://github.com/actions/setup-python@v5
|
|
with:
|
|
python-version: "3.13"
|
|
|
|
- name: Install CLI dependencies
|
|
working-directory: cli
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
python -m pip install -e .[dev]
|
|
python -m pip install build
|
|
|
|
- name: Test CLI
|
|
working-directory: cli
|
|
run: python -m pytest
|
|
|
|
- name: Build CLI package
|
|
working-directory: cli
|
|
run: python -m build
|