forked from Chainlit/chainlit
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (25 loc) · 810 Bytes
/
tests.yaml
File metadata and controls
28 lines (25 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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