Skip to content

Commit 86c56db

Browse files
committed
Checkpoint
1 parent 888641a commit 86c56db

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/build.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,25 @@ jobs:
2424
with:
2525
python-version: "3.12"
2626
enable-cache: true
27-
cache-dependency-glob: "requirements.txt"
27+
cache-dependency-glob: "python/requirements.txt"
2828

2929
- name: Install dependencies
30+
working-directory: ./python
3031
run: |
3132
if [ -f requirements.txt ]; then uv pip install -r requirements.txt; fi
3233
uv pip install pytest
3334
3435
- name: Install the package
36+
working-directory: ./python
3537
run: |
3638
uv pip install .
3739
3840
- name: Test with pytest
41+
working-directory: ./python
3942
run: |
40-
uv run pytest
43+
PYTHONPATH=.. uv run pytest
4144
4245
- name: Check if the main script is installed
46+
working-directory: ./python
4347
run: |
4448
uv run convert_jsondoc --help

.github/workflows/publish.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,12 @@ jobs:
3434
uses: astral-sh/setup-uv@v5
3535

3636
- name: Install dependencies
37+
working-directory: ./python
3738
run: |
3839
uv pip install --system toml
3940
4041
- name: Extract version from tag and update pyproject.toml
42+
working-directory: ./python
4143
run: |
4244
# Get the version from the tag (remove 'v' prefix)
4345
TAG_VERSION=${GITHUB_REF#refs/tags/v}
@@ -58,11 +60,13 @@ jobs:
5860
cat pyproject.toml | grep version
5961
6062
- name: Build package
63+
working-directory: ./python
6164
run: uv build --no-sources
6265

6366
- name: Publish package to PyPI
6467
uses: pypa/[email protected]
6568
with:
69+
packages-dir: python/dist/
6670
user: __token__
6771
password: ${{ secrets.PYPI_API_TOKEN }}
6872
verbose: true

0 commit comments

Comments
 (0)