25 lines
553 B
YAML
25 lines
553 B
YAML
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
run: |
|
|
git clone https://${{ gitea.server }}/${{ gitea.repository }} .
|
|
git checkout ${{ gitea.sha }}
|
|
|
|
- name: Python version
|
|
run: python3 --version
|
|
|
|
- name: Install deps
|
|
run: |
|
|
python3 -m pip install --upgrade pip
|
|
python3 -m pip install pytest ruff
|
|
python3 -m pip install -e ".[dev]"
|
|
|
|
- name: Test
|
|
run: python3 -m pytest tests/ -v --tb=short
|