Files
code-pattern-search-cli/.gitea/workflows/ci.yml
7000pctAUTO efcbf31093
All checks were successful
CI / lint (push) Successful in 8s
CI / test (3.10) (push) Successful in 11s
CI / test (3.11) (push) Successful in 13s
CI / test (3.12) (push) Successful in 13s
CI / build (push) Successful in 12s
fix: reorder jobs and ensure dev dependencies installed for CI
2026-02-02 19:18:50 +00:00

42 lines
895 B
YAML

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install -e ".[dev]"
- run: ruff check src/ tests/
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: pip install -e ".[dev]"
- run: pytest tests/ -v --tb=short
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install build
- run: python -m build