28 lines
682 B
YAML
28 lines
682 B
YAML
name: CI
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
- name: Install dependencies
|
|
run: pip install pytest pyyaml click rich jinja2 jsonschema prompt_toolkit tomli
|
|
- name: Debug directory
|
|
run: |
|
|
pwd
|
|
ls -la
|
|
ls -la tests/ 2>/dev/null || echo "No tests directory"
|
|
- name: Run tests
|
|
run: |
|
|
if [ -d "tests" ]; then
|
|
pytest tests/ -v --tb=short || exit 1
|
|
else
|
|
echo "No tests found"
|
|
exit 0
|
|
fi
|