fieldwitness/.gitea/workflows/ci.yml
Aaron D. Lee c8dc9be011
All checks were successful
CI / lint (push) Successful in 29s
CI / typecheck (push) Successful in 25s
Disable test job in CI until stegasoo/verisoo are migrated
These packages aren't available from git.golfcards.club yet.
Lint and typecheck jobs still run.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 18:38:14 -04:00

54 lines
1.9 KiB
YAML

name: CI
on:
push:
branches: [main, master]
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
container:
image: python:3.12-slim
steps:
- name: Install git
run: apt-get update && apt-get install -y --no-install-recommends git
- name: Checkout
run: |
git clone --depth=1 --branch="${GITHUB_REF_NAME}" https://git.golfcards.club/alee/soosef.git "$GITHUB_WORKSPACE" || git clone --depth=1 https://git.golfcards.club/alee/soosef.git "$GITHUB_WORKSPACE"
- run: pip install ruff black
- name: Check formatting
run: black --check --target-version py312 src/ tests/ frontends/
- name: Lint
run: ruff check src/ tests/ frontends/
typecheck:
runs-on: ubuntu-latest
container:
image: python:3.12-slim
steps:
- name: Install git
run: apt-get update && apt-get install -y --no-install-recommends git
- name: Checkout
run: |
git clone --depth=1 --branch="${GITHUB_REF_NAME}" https://git.golfcards.club/alee/soosef.git "$GITHUB_WORKSPACE" || git clone --depth=1 https://git.golfcards.club/alee/soosef.git "$GITHUB_WORKSPACE"
- run: pip install mypy
- name: Typecheck
run: mypy src/
# TODO: Re-enable once stegasoo/verisoo are available from git.golfcards.club
# test:
# runs-on: ubuntu-latest
# container:
# image: python:3.12-slim
# steps:
# - name: Install git
# run: apt-get update && apt-get install -y --no-install-recommends git
# - name: Checkout
# run: |
# git clone --depth=1 --branch="${GITHUB_REF_NAME}" https://git.golfcards.club/alee/soosef.git "$GITHUB_WORKSPACE" || git clone --depth=1 https://git.golfcards.club/alee/soosef.git "$GITHUB_WORKSPACE"
# - name: Install dependencies
# run: pip install -e ".[dev]"
# - name: Run tests
# run: pytest --cov=soosef --cov-report=term-missing