Skip to content

[PB] Packaging fixes to various lib to enable non-editable installing #8

[PB] Packaging fixes to various lib to enable non-editable installing

[PB] Packaging fixes to various lib to enable non-editable installing #8

name: Run tests on preparedness_turn_completer
on:
pull_request:
paths:
- 'project/common/preparedness_turn_completer/**'
branches:
- '**'
types: [opened, synchronize, reopened, ready_for_review]
workflow_dispatch:
inputs:
test_branch:
description: 'Branch to run the tests on'
required: false
default: 'main'
jobs:
test:
runs-on: ubuntu-latest
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
steps:
- uses: actions/checkout@v4
with:
lfs: false
fetch-depth: 1
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install dependencies
working-directory: ./project/common/preparedness_turn_completer
env:
UV_GIT_LFS: 1
run: |
uv sync
- name: run tests
working-directory: ./project/common/preparedness_turn_completer
run: |
uv run pytest -n auto tests/ -v --tb=short