Skip to content

Commit fab73f4

Browse files
Add CI pipeline and uv lockfile
- .github/workflows/ci.yml: run pytest on every push and PR across Python 3.10, 3.11, 3.12, 3.13 using uv sync --frozen --extra dev - pyproject.toml: add [dev] extras (pytest, pytest-cov); tighten requires-python to >=3.10 to match vcrpy 8.1.1's own requirement; drop 3.8/3.9 classifiers that were already unsatisfiable - uv.lock: generated lockfile for reproducible CI installs - .gitignore: unblock uv.lock from the *.lock glob Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 5d2be49 commit fab73f4

File tree

4 files changed

+519
-3
lines changed

4 files changed

+519
-3
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ["**"]
6+
pull_request:
7+
branches: ["**"]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
python-version: ["3.10", "3.11", "3.12", "3.13"]
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
- name: Install uv
26+
uses: astral-sh/setup-uv@v5
27+
28+
- name: Install dependencies
29+
run: uv sync --frozen --extra dev
30+
31+
- name: Run tests
32+
run: uv run pytest tests/

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ venv/
1111
.pytest_cache/
1212
.ruff_cache/
1313
*.lock
14+
!uv.lock

pyproject.toml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@ version = "0.1.0"
88
description = "VCR recording, sanitization, and validation for Keboola component HTTP interactions"
99
readme = "README.md"
1010
license = {text = "MIT"}
11-
requires-python = ">=3.8"
11+
requires-python = ">=3.10"
1212
classifiers = [
1313
"Development Status :: 4 - Beta",
1414
"Intended Audience :: Developers",
1515
"License :: OSI Approved :: MIT License",
1616
"Programming Language :: Python :: 3",
17-
"Programming Language :: Python :: 3.8",
18-
"Programming Language :: Python :: 3.9",
1917
"Programming Language :: Python :: 3.10",
2018
"Programming Language :: Python :: 3.11",
2119
"Programming Language :: Python :: 3.12",
@@ -26,6 +24,12 @@ dependencies = [
2624
"freezegun>=1.5.5,<2",
2725
]
2826

27+
[project.optional-dependencies]
28+
dev = [
29+
"pytest>=7.0",
30+
"pytest-cov>=4.0",
31+
]
32+
2933
[project.urls]
3034
Homepage = "https://github.com/keboola/python-vcr-tests"
3135
Repository = "https://github.com/keboola/python-vcr-tests"

0 commit comments

Comments
 (0)