Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.10', '3.11', '3.12', '3.13', '3.14']
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']

steps:
- name: Checkout code
Expand All @@ -20,11 +20,13 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python }}
python-version: ${{ matrix.python-version }}

- name: Install package
run: |
pip install .[dev]
- name: Setup uv
uses: astral-sh/setup-uv@ed21f2f24f8dd64503750218de024bcf64c7250a # v7.1.5

- name: Install packages
run: uv sync --frozen

- name: Check formatting
run: |
Expand All @@ -35,4 +37,4 @@ jobs:
make check-fix

- name: Run tests
run: pytest
run: make test
12 changes: 7 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
RUN := uv run

test:
@pytest
@$(RUN) pytest

fix:
@ruff check --fix
@$(RUN) ruff check --fix

check-fix:
@ruff check
@$(RUN) ruff check

format:
@ruff format
@$(RUN) ruff format

check-format:
@ruff format --check
@$(RUN) ruff format --check

.PHONY: test fix check-fix format check-format
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ dependencies = [
"sqlalchemy>=2,<3",
"alembic",
]
requires-python = ">=3.10"

[project.optional-dependencies]
[dependency-groups]
dev = [
"ruff",
"pytest",
Expand All @@ -42,3 +43,6 @@ line-length = 88
[tool.setuptools.packages.find]
where = ["."] # Or wherever your 'scraperwiki' package folder is located
include = ["scraperwiki*"]

[tool.uv]
required-version = ">=0.9"
Loading
Loading