b7f52be4c9
Copilot Setup Steps / copilot-setup-steps (push) Waiting to run
CI / Run CI (push) Has been cancelled
CI / check-backend (push) Has been cancelled
CI / check-frontend (push) Has been cancelled
CI / tests (push) Has been cancelled
CI / e2e-tests (push) Has been cancelled
29 lines
810 B
YAML
29 lines
810 B
YAML
name: Unit & integration tests
|
|
|
|
on: [workflow_call]
|
|
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
tests:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ['3.10', '3.11', '3.12', '3.13']
|
|
name: python ${{ matrix.python-version }}
|
|
env:
|
|
BACKEND_DIR: ./backend
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: ./.github/actions/pnpm-node-install
|
|
name: Install Node, pnpm and dependencies.
|
|
- uses: ./.github/actions/uv-python-install
|
|
name: Install Python, uv and Python dependencies
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
uv-args: --extra tests --extra custom-data
|
|
- name: Run backend tests
|
|
run: uv run --no-project pytest --cov=chainlit/
|
|
- name: Run frontend tests
|
|
run: pnpm run test
|