14 Commits

Author SHA1 Message Date
66dcf9bcd2 Update .drone.yml
Some checks failed
continuous-integration/drone/push Build was killed
/ test-build (pull_request) Failing after 24s
continuous-integration/drone/pr Build is failing
2025-10-25 08:14:52 +01:00
612a5c152d Update .drone.yml
Some checks failed
/ test-build (pull_request) Failing after 19s
continuous-integration/drone/pr Build is failing
2025-10-25 07:58:23 +01:00
03c42dcd68 Update .drone.yml
Some checks failed
/ test-build (pull_request) Failing after 18s
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is failing
2025-10-24 21:56:47 +01:00
e215ba489a Update .drone.yml
Some checks failed
/ test-build (pull_request) Failing after 19s
continuous-integration/drone/pr Build is failing
2025-10-24 21:44:44 +01:00
4e1233e9e9 Update .drone.yml
Some checks failed
/ test-build (pull_request) Failing after 25s
continuous-integration/drone/pr Build was killed
2025-10-24 21:42:59 +01:00
804e15d764 Update .drone.yml
Some checks failed
/ typecheck (pull_request) Failing after 1m2s
continuous-integration/drone/pr Build was killed
remove run on push, bump image to 3.13
2025-10-24 21:34:56 +01:00
c66bbbe8ce Update .drone.yml
Some checks failed
continuous-integration/drone/push Build is failing
2025-10-24 21:30:58 +01:00
b90b3ab122 Update .drone.yml
Some checks failed
continuous-integration/drone/push Build encountered an error
add pipeline template to test it
2025-10-24 21:27:44 +01:00
e3d6039d11 Update README.md 2025-10-24 21:05:36 +01:00
6602200f4c Add .drone.yml 2025-10-24 21:05:21 +01:00
7337e0297e Merge pull request 'dev' (#3) from dev into main
Reviewed-on: #3
2025-10-21 15:16:38 +01:00
Gitea CI
25237a1812 Bump version: 0.0.0 → 0.0.1 2025-10-13 13:19:30 +00:00
e713803b2e Merge pull request 'add versioning' (#2) from dev into main
Reviewed-on: #2
2025-10-13 14:19:11 +01:00
78483cfebb Merge pull request 'chore: add dependencies' (#1) from dev into main
Reviewed-on: #1
2025-10-13 13:47:55 +01:00
3 changed files with 76 additions and 1 deletions

74
.drone.yml Normal file
View File

@@ -0,0 +1,74 @@
---
kind: pipeline
type: docker
name: python-uv-ci
trigger:
event: [ push, pull_request ]
volumes:
- name: uv-cache
temp: {}
- name: uv-home
temp: {} # persists ~/.local (uv tool shims/envs) across steps in this run
steps:
- name: lint+typecheck
image: python:3.13-slim
volumes:
- name: uv-cache
path: /root/.cache/uv
- name: uv-home
path: /root/.local
environment:
UV_NO_SYNC_PROGRESS: "1"
commands:
- apt-get update && apt-get install -y curl ca-certificates && rm -rf /var/lib/apt/lists/*
- curl -LsSf https://astral.sh/uv/install.sh | sh
- export PATH="$HOME/.local/bin:$PATH"
- uv python install 3.13
- uv sync --all-extras --dev
# install CLI tools (ruff not bundled by default)
- uv tool install ruff
- uv tool install mypy
- ruff --version
- mypy --version
- ruff check .
- mypy --ignore-missing-imports .
- name: test
image: python:3.13-slim
volumes:
- name: uv-cache
path: /root/.cache/uv
- name: uv-home
path: /root/.local
environment:
UV_NO_SYNC_PROGRESS: "1"
commands:
- apt-get update && apt-get install -y curl ca-certificates && rm -rf /var/lib/apt/lists/*
- curl -LsSf https://astral.sh/uv/install.sh | sh
- export PATH="$HOME/.local/bin:$PATH"
- uv python install 3.13
- uv sync --all-extras --dev
# tools already installed in previous step; safe to re-run for idempotency
- uv add pytest pytest-cov
- pytest -q --maxfail=1 --disable-warnings --cov --cov-report=term-missing
- name: build-wheel
image: python:3.13-slim
volumes:
- name: uv-cache
path: /root/.cache/uv
- name: uv-home
path: /root/.local
environment:
UV_NO_SYNC_PROGRESS: "1"
commands:
- apt-get update && apt-get install -y curl ca-certificates && rm -rf /var/lib/apt/lists/*
- curl -LsSf https://astral.sh/uv/install.sh | sh
- export PATH="$HOME/.local/bin:$PATH"
- uv python install 3.13
- uv sync --all-extras --dev
- uv build
- ls -lh dist

View File

@@ -0,0 +1 @@
[![Build Status](https://drone.theprivateserver.de/api/badges/PHB/BibAPI/status.svg)](https://drone.theprivateserver.de/PHB/BibAPI)

View File

@@ -17,7 +17,7 @@ requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.bumpversion]
current_version = "0.0.0"
current_version = "0.0.1"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
serialize = ["{major}.{minor}.{patch}"]
search = "{current_version}"