24 lines
567 B
YAML
24 lines
567 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Debug install
|
|
run: |
|
|
echo "=== Directory check ==="
|
|
ls -la /app
|
|
echo "=== Python version ==="
|
|
python3 --version
|
|
pip3 --version
|
|
echo "=== Installing ==="
|
|
pip3 install -e /app 2>&1 | tail -20
|
|
echo "=== Install exit code: $? ==="
|
|
- name: Run tests
|
|
run: |
|
|
pytest /app/tests/ -v --tb=short 2>&1 | tail -50
|
|
echo "=== Tests exit code: $? ===" |