mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
95bfec5d28
Runs pytest on sdk-python/ for pushes and PRs that touch the Python SDK.
40 lines
876 B
YAML
40 lines
876 B
YAML
name: test / unit / python-sdk
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "sdk-python/**"
|
|
- ".github/workflows/test_unit-python-sdk.yml"
|
|
pull_request:
|
|
branches: [main]
|
|
paths:
|
|
- "sdk-python/**"
|
|
- ".github/workflows/test_unit-python-sdk.yml"
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.12"
|
|
|
|
- name: Install Poetry
|
|
uses: snok/install-poetry@v1
|
|
with:
|
|
version: latest
|
|
virtualenvs-create: true
|
|
virtualenvs-in-project: true
|
|
|
|
- name: Install dependencies
|
|
working-directory: sdk-python
|
|
run: poetry install
|
|
|
|
- name: Run tests
|
|
working-directory: sdk-python
|
|
run: poetry run python -m pytest tests/ -v
|