lint pipe fixes
This commit is contained in:
@@ -1,13 +1,19 @@
|
||||
when:
|
||||
- event: [push, pull_request]
|
||||
branch: dev
|
||||
branch: main
|
||||
|
||||
steps:
|
||||
- name: lint
|
||||
image: python:3.11
|
||||
commands:
|
||||
- pip install uv
|
||||
- uv sync --dev
|
||||
- uv sync --only-group lints
|
||||
- uv run black --check .
|
||||
- uv run ruff check .
|
||||
- uv run isort --check-only .
|
||||
- name: types
|
||||
image: python:3.11
|
||||
commands:
|
||||
- pip install uv
|
||||
- uv sync --only-group types
|
||||
- uv run mypy .
|
||||
@@ -1,19 +0,0 @@
|
||||
when:
|
||||
- event: push
|
||||
branch: main
|
||||
- event: pull_request
|
||||
branch: main
|
||||
|
||||
steps:
|
||||
- name: install
|
||||
image: python:3.11-slim
|
||||
commands:
|
||||
- pip install --upgrade pip
|
||||
- pip install pytest pytest-cov coverage
|
||||
- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||
|
||||
- name: test
|
||||
image: python:3.11-slim
|
||||
commands:
|
||||
- pytest --cov=src --cov-report=term --cov-report=xml tests/
|
||||
|
||||
12
.woodpecker/tests.yaml
Normal file
12
.woodpecker/tests.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
when:
|
||||
- event: [push, pull_request]
|
||||
branch: main
|
||||
|
||||
steps:
|
||||
- name: tests
|
||||
image: python:3.11
|
||||
commands:
|
||||
- pip install uv
|
||||
- uv sync --group tests
|
||||
- uv run pytest
|
||||
|
||||
Reference in New Issue
Block a user