File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -24,21 +24,25 @@ jobs:
24
24
with :
25
25
python-version : " 3.12"
26
26
enable-cache : true
27
- cache-dependency-glob : " requirements.txt"
27
+ cache-dependency-glob : " python/ requirements.txt"
28
28
29
29
- name : Install dependencies
30
+ working-directory : ./python
30
31
run : |
31
32
if [ -f requirements.txt ]; then uv pip install -r requirements.txt; fi
32
33
uv pip install pytest
33
34
34
35
- name : Install the package
36
+ working-directory : ./python
35
37
run : |
36
38
uv pip install .
37
39
38
40
- name : Test with pytest
41
+ working-directory : ./python
39
42
run : |
40
- uv run pytest
43
+ PYTHONPATH=.. uv run pytest
41
44
42
45
- name : Check if the main script is installed
46
+ working-directory : ./python
43
47
run : |
44
48
uv run convert_jsondoc --help
Original file line number Diff line number Diff line change @@ -34,10 +34,12 @@ jobs:
34
34
uses : astral-sh/setup-uv@v5
35
35
36
36
- name : Install dependencies
37
+ working-directory : ./python
37
38
run : |
38
39
uv pip install --system toml
39
40
40
41
- name : Extract version from tag and update pyproject.toml
42
+ working-directory : ./python
41
43
run : |
42
44
# Get the version from the tag (remove 'v' prefix)
43
45
TAG_VERSION=${GITHUB_REF#refs/tags/v}
@@ -58,11 +60,13 @@ jobs:
58
60
cat pyproject.toml | grep version
59
61
60
62
- name : Build package
63
+ working-directory : ./python
61
64
run : uv build --no-sources
62
65
63
66
- name : Publish package to PyPI
64
67
65
68
with :
69
+ packages-dir : python/dist/
66
70
user : __token__
67
71
password : ${{ secrets.PYPI_API_TOKEN }}
68
72
verbose : true
You can’t perform that action at this time.
0 commit comments