26 lines
564 B
YAML
26 lines
564 B
YAML
name: Tests
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: python:3.11-slim
|
|
steps:
|
|
- name: Install git
|
|
run: apt-get update && apt-get install -y git
|
|
|
|
- uses: https://github.com/actions/checkout@v4
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
pip install -e .
|
|
pip install pytest
|
|
|
|
- name: Run tests
|
|
run: python -m pytest tests/ -v --tb=short
|
|
|
|
- name: Smoke test CLI
|
|
run: |
|
|
cortex version
|
|
cortex triage score "test task"
|