25 lines
588 B
YAML
25 lines
588 B
YAML
name: CI
|
|
on: [push, pull_request]
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Clone repo
|
|
run: |
|
|
git clone https://${{ gitea.server }}/${{ gitea.repository }} .
|
|
git checkout ${{ gitea.sha }}
|
|
|
|
- name: Debug info
|
|
run: |
|
|
ls -la tests/
|
|
head -20 tests/test_cli.py || true
|
|
|
|
- name: Install deps
|
|
run: |
|
|
pip3 install --quiet pytest click pyyaml rich
|
|
|
|
- name: Run single test
|
|
run: |
|
|
pip3 install --quiet -e .
|
|
pytest tests/test_cli.py -v --tb=short || true
|