Skip to content

Merge branch 'main' of https://github.com/llSourcell/YardVision #1

Merge branch 'main' of https://github.com/llSourcell/YardVision

Merge branch 'main' of https://github.com/llSourcell/YardVision #1

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: '1.8.3'
- name: Cache Poetry
uses: actions/cache@v4
with:
path: |
~/.cache/pypoetry
~/.cache/pip
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Install dependencies
run: |
poetry install
- name: Lint (ruff)
run: |
poetry run ruff check .
poetry run ruff format --check
- name: Type check (mypy)
run: |
poetry run mypy --strict --python-version 3.11
- name: Run tests (pytest)
run: |
poetry run pytest -q