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
26 changes: 13 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
working-directory: chrome/extension-src
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Setup Node
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: "20"
cache: npm
Expand All @@ -37,7 +37,7 @@ jobs:
run: npm run build

- name: Upload extension dist
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
if: success()
with:
name: extension-dist
Expand All @@ -48,12 +48,12 @@ jobs:
name: Backend Quality
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Setup Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: "3.11"
python-version-file: ".python-version"

- name: Install dependencies
run: |
Expand All @@ -73,7 +73,7 @@ jobs:
# this floor incrementally (e.g. 70 -> 75 -> 80) instead of jumping
# straight to the pyproject target.
- name: Unit tests (with coverage report)
run: pytest tests/unit -m "not live" --cov=backend --cov-report=term-missing --cov-fail-under=0
run: python -m pytest tests/unit -m "not live" --cov=backend --cov-report=term-missing --cov-fail-under=0

migrations:
runs-on: ubuntu-latest
Expand All @@ -99,12 +99,12 @@ jobs:
DATABASE_URL: postgresql+asyncpg://opencli:opencli_secret@localhost:5432/opencli_admin
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Setup Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: "3.11"
python-version-file: ".python-version"

- name: Install dependencies
run: |
Expand Down Expand Up @@ -134,7 +134,7 @@ jobs:
# is caught. --no-cov: this is a targeted single-test step, not a coverage
# run (pyproject's addopts would otherwise fail it under the 80% gate).
- name: cursor FOR UPDATE locking (Postgres)
run: pytest tests/unit/pipeline/test_db_cursor_store.py -k postgres --no-cov -p no:cacheprovider
run: python -m pytest tests/unit/pipeline/test_db_cursor_store.py -k postgres --no-cov -p no:cacheprovider

cargo:
runs-on: ubuntu-latest
Expand All @@ -144,15 +144,15 @@ jobs:
working-directory: odp-rs
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy

- name: Cache cargo registry + target
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: |
~/.cargo/registry
Expand Down
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.13
4 changes: 2 additions & 2 deletions iii/workers/collector-discord/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM python:3.12-slim-bookworm
FROM python:3.13-slim-bookworm
WORKDIR /app
COPY workers/collector-discord/pyproject.toml workers/collector-discord/src ./worker/
COPY lib ./lib
RUN pip install --no-cache-dir -e ./worker
ENV PYTHONUNBUFFERED=1
CMD ["python", "worker/src/main.py"]
CMD ["python", "worker/src/main.py"]
4 changes: 2 additions & 2 deletions iii/workers/collector-discord/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "collector-discord"
version = "0.1.0"
description = "III worker — Discord snapshot collector via discord-cli"
requires-python = ">=3.11"
requires-python = ">=3.13"
dependencies = [
"iii-sdk==0.19.4",
"iii-observability==0.19.4",
Expand All @@ -15,4 +15,4 @@ requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
only-include = ["src/main.py"]
only-include = ["src/main.py"]
4 changes: 2 additions & 2 deletions iii/workers/collector-opencli/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "collector-opencli"
version = "0.1.0"
description = "III worker — OpenCLI snapshot collector"
requires-python = ">=3.11"
requires-python = ">=3.13"
dependencies = [
"iii-sdk==0.19.4",
"iii-observability==0.19.4",
Expand All @@ -16,4 +16,4 @@ requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
only-include = ["src/main.py"]
only-include = ["src/main.py"]
4 changes: 2 additions & 2 deletions iii/workers/odp-ingest-bridge/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM python:3.12-slim-bookworm
FROM python:3.13-slim-bookworm
WORKDIR /app
COPY workers/odp-ingest-bridge/pyproject.toml ./worker/
COPY workers/odp-ingest-bridge/src ./worker/src/
COPY lib ./lib
RUN pip install --no-cache-dir -e ./worker
ENV PYTHONUNBUFFERED=1
ENV PYTHONPATH=/app
CMD ["python", "worker/src/main.py"]
CMD ["python", "worker/src/main.py"]
4 changes: 2 additions & 2 deletions iii/workers/odp-ingest-bridge/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "odp-ingest-bridge"
version = "0.1.0"
description = "III worker — forwards Record v2 batches to Rust odp-ingest"
requires-python = ">=3.11"
requires-python = ">=3.13"
dependencies = [
"iii-sdk==0.19.4",
"iii-observability==0.19.4",
Expand All @@ -15,4 +15,4 @@ requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
only-include = ["src/main.py"]
only-include = ["src/main.py"]
4 changes: 2 additions & 2 deletions iii/workers/schedule-bootstrap/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "schedule-bootstrap"
version = "0.1.0"
description = "III worker — registers cron triggers for Discord collection"
requires-python = ">=3.11"
requires-python = ">=3.13"
dependencies = [
"iii-sdk==0.19.4",
"iii-observability==0.19.4",
Expand All @@ -15,4 +15,4 @@ requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
only-include = ["src/main.py"]
only-include = ["src/main.py"]
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "hatchling.build"
name = "opencli-admin"
version = "0.1.0"
description = "Multi-channel data collection management system"
requires-python = ">=3.11"
requires-python = ">=3.13"
dependencies = [
# Web framework
"fastapi>=0.115.0",
Expand Down Expand Up @@ -122,13 +122,13 @@ omit = [

[tool.ruff]
line-length = 100
target-version = "py311"
target-version = "py313"

[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "UP"]

[tool.mypy]
python_version = "3.11"
python_version = "3.13"
strict = false
ignore_missing_imports = true

Expand Down
Loading
Loading