25 lines
543 B
YAML
25 lines
543 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
run: |
|
|
git clone https://gitea.com/${{ repo }} . || true
|
|
- name: Setup Python
|
|
run: |
|
|
apt-get update && apt-get install -y python3 python3-pip
|
|
- name: Install deps
|
|
run: |
|
|
pip install --upgrade pip
|
|
pip install -e ".[dev]"
|
|
- name: Run tests
|
|
run: |
|
|
PYTHONPATH=src pytest tests/ -v --tb=short |