chore: import upstream snapshot with attribution
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
Copilot Setup Steps / copilot-setup-steps (push) Has been cancelled
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
Copilot Setup Steps / copilot-setup-steps (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
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
|
||||
Reference in New Issue
Block a user