Gitea Actions reads .gitea/workflows, so the workflow lives there. Update the workflow header comment, the Continuous integration section and the project layout in the README to match. A GitHub mirror does not run it.
27 lines
611 B
YAML
27 lines
611 B
YAML
# Runs on Gitea Actions (Gitea reads .gitea/workflows).
|
|
name: CI
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.13"
|
|
- name: Install
|
|
run: |
|
|
python -m venv .venv
|
|
.venv/bin/python -m pip install --upgrade pip
|
|
.venv/bin/python -m pip install -e ".[dev]"
|
|
- name: Lint
|
|
run: .venv/bin/ruff check .
|
|
- name: Type check
|
|
run: .venv/bin/mypy
|
|
- name: Test
|
|
run: .venv/bin/python -m pytest
|