Skip to content

Commit

Permalink
fix: uv virtual env
Browse files Browse the repository at this point in the history
  • Loading branch information
PeriniM committed Jan 2, 2025
1 parent 8a63c06 commit fce9886
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,23 @@ jobs:
with:
fetch-depth: 0
persist-credentials: false
- name: Remove Hardcoded Version (if present)
- name: Create Virtual Environment
run: |
sed -i '/^version =/d' pyproject.toml
- name: Update Dependencies
uv venv
- name: Activate Virtual Environment and Install Dependencies
run: |
source .venv/bin/activate # For Linux/macOS. Use .venv\Scripts\activate for Windows
uv sync --frozen
uv pip install --upgrade setuptools wheel hatchling twine
- name: Build app
run: |
uv sync --frozen
source .venv/bin/activate # Activate the virtual environment again if needed
uv build
id: build_cache
if: success()
- name: Validate Metadata
run: |
source .venv/bin/activate
uv run twine check dist/*
- name: Debug Dist Directory
run: |
Expand Down Expand Up @@ -70,6 +73,9 @@ jobs:
with:
fetch-depth: 0
persist-credentials: false
- name: Restore Virtual Environment
run: |
source .venv/bin/activate
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4.1.0
with:
Expand Down

0 comments on commit fce9886

Please sign in to comment.