File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -25,20 +25,23 @@ jobs:
2525 with :
2626 fetch-depth : 0
2727 persist-credentials : false
28- - name : Remove Hardcoded Version (if present)
28+ - name : Create Virtual Environment
2929 run : |
30- sed -i '/^version =/d' pyproject.toml
31- - name : Update Dependencies
30+ uv venv
31+ - name : Activate Virtual Environment and Install Dependencies
3232 run : |
33+ source .venv/bin/activate # For Linux/macOS. Use .venv\Scripts\activate for Windows
34+ uv sync --frozen
3335 uv pip install --upgrade setuptools wheel hatchling twine
3436 - name : Build app
3537 run : |
36- uv sync --frozen
38+ source .venv/bin/activate # Activate the virtual environment again if needed
3739 uv build
3840 id : build_cache
3941 if : success()
4042 - name : Validate Metadata
4143 run : |
44+ source .venv/bin/activate
4245 uv run twine check dist/*
4346 - name : Debug Dist Directory
4447 run : |
7073 with :
7174 fetch-depth : 0
7275 persist-credentials : false
76+ - name : Restore Virtual Environment
77+ run : |
78+ source .venv/bin/activate
7379 - name : Semantic Release
74807581 with :
You can’t perform that action at this time.
0 commit comments