pytest-neon 0.2.0__tar.gz → 0.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pytest_neon-0.2.1/.github/workflows/release.yml +88 -0
- {pytest_neon-0.2.0 → pytest_neon-0.2.1}/PKG-INFO +1 -1
- {pytest_neon-0.2.0 → pytest_neon-0.2.1}/pyproject.toml +1 -1
- {pytest_neon-0.2.0 → pytest_neon-0.2.1}/src/pytest_neon/__init__.py +1 -1
- {pytest_neon-0.2.0 → pytest_neon-0.2.1}/.env.example +0 -0
- {pytest_neon-0.2.0 → pytest_neon-0.2.1}/.github/workflows/tests.yml +0 -0
- {pytest_neon-0.2.0 → pytest_neon-0.2.1}/.gitignore +0 -0
- {pytest_neon-0.2.0 → pytest_neon-0.2.1}/.neon +0 -0
- {pytest_neon-0.2.0 → pytest_neon-0.2.1}/CLAUDE.md +0 -0
- {pytest_neon-0.2.0 → pytest_neon-0.2.1}/LICENSE +0 -0
- {pytest_neon-0.2.0 → pytest_neon-0.2.1}/README.md +0 -0
- {pytest_neon-0.2.0 → pytest_neon-0.2.1}/src/pytest_neon/plugin.py +0 -0
- {pytest_neon-0.2.0 → pytest_neon-0.2.1}/src/pytest_neon/py.typed +0 -0
- {pytest_neon-0.2.0 → pytest_neon-0.2.1}/tests/conftest.py +0 -0
- {pytest_neon-0.2.0 → pytest_neon-0.2.1}/tests/test_branch_lifecycle.py +0 -0
- {pytest_neon-0.2.0 → pytest_neon-0.2.1}/tests/test_cli_options.py +0 -0
- {pytest_neon-0.2.0 → pytest_neon-0.2.1}/tests/test_env_var.py +0 -0
- {pytest_neon-0.2.0 → pytest_neon-0.2.1}/tests/test_fixture_errors.py +0 -0
- {pytest_neon-0.2.0 → pytest_neon-0.2.1}/tests/test_integration.py +0 -0
- {pytest_neon-0.2.0 → pytest_neon-0.2.1}/tests/test_skip_behavior.py +0 -0
- {pytest_neon-0.2.0 → pytest_neon-0.2.1}/uv.lock +0 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
bump:
|
|
7
|
+
description: 'Version bump type'
|
|
8
|
+
required: true
|
|
9
|
+
type: choice
|
|
10
|
+
options:
|
|
11
|
+
- patch
|
|
12
|
+
- minor
|
|
13
|
+
- major
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
release:
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
permissions:
|
|
19
|
+
contents: write
|
|
20
|
+
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@v4
|
|
23
|
+
with:
|
|
24
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
25
|
+
|
|
26
|
+
- name: Set up Python
|
|
27
|
+
uses: actions/setup-python@v5
|
|
28
|
+
with:
|
|
29
|
+
python-version: '3.12'
|
|
30
|
+
|
|
31
|
+
- name: Install uv
|
|
32
|
+
uses: astral-sh/setup-uv@v4
|
|
33
|
+
|
|
34
|
+
- name: Bump version
|
|
35
|
+
id: bump
|
|
36
|
+
env:
|
|
37
|
+
BUMP_TYPE: ${{ github.event.inputs.bump }}
|
|
38
|
+
run: |
|
|
39
|
+
# Read current version from pyproject.toml
|
|
40
|
+
current=$(grep '^version = ' pyproject.toml | sed 's/version = "\(.*\)"/\1/')
|
|
41
|
+
echo "Current version: $current"
|
|
42
|
+
|
|
43
|
+
# Parse version components
|
|
44
|
+
IFS='.' read -r major minor patch <<< "$current"
|
|
45
|
+
|
|
46
|
+
# Bump based on input
|
|
47
|
+
case "$BUMP_TYPE" in
|
|
48
|
+
major)
|
|
49
|
+
major=$((major + 1))
|
|
50
|
+
minor=0
|
|
51
|
+
patch=0
|
|
52
|
+
;;
|
|
53
|
+
minor)
|
|
54
|
+
minor=$((minor + 1))
|
|
55
|
+
patch=0
|
|
56
|
+
;;
|
|
57
|
+
patch)
|
|
58
|
+
patch=$((patch + 1))
|
|
59
|
+
;;
|
|
60
|
+
esac
|
|
61
|
+
|
|
62
|
+
new_version="${major}.${minor}.${patch}"
|
|
63
|
+
echo "New version: $new_version"
|
|
64
|
+
echo "version=$new_version" >> $GITHUB_OUTPUT
|
|
65
|
+
|
|
66
|
+
# Update pyproject.toml
|
|
67
|
+
sed -i "s/^version = \".*\"/version = \"$new_version\"/" pyproject.toml
|
|
68
|
+
|
|
69
|
+
# Update __init__.py
|
|
70
|
+
sed -i "s/__version__ = \".*\"/__version__ = \"$new_version\"/" src/pytest_neon/__init__.py
|
|
71
|
+
|
|
72
|
+
- name: Commit version bump
|
|
73
|
+
env:
|
|
74
|
+
VERSION: ${{ steps.bump.outputs.version }}
|
|
75
|
+
run: |
|
|
76
|
+
git config user.name "github-actions[bot]"
|
|
77
|
+
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
78
|
+
git add pyproject.toml src/pytest_neon/__init__.py
|
|
79
|
+
git commit -m "Release v$VERSION"
|
|
80
|
+
git tag "v$VERSION"
|
|
81
|
+
git push origin main --tags
|
|
82
|
+
|
|
83
|
+
- name: Build and publish
|
|
84
|
+
env:
|
|
85
|
+
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
|
|
86
|
+
run: |
|
|
87
|
+
uv build
|
|
88
|
+
uv publish
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pytest-neon
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: Pytest plugin for Neon database branch isolation in tests
|
|
5
5
|
Project-URL: Homepage, https://github.com/zain/pytest-neon
|
|
6
6
|
Project-URL: Repository, https://github.com/zain/pytest-neon
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|