mirror of
https://github.com/VinciGit00/Scrapegraph-ai.git
synced 2026-07-01 21:00:48 +08:00
fix: uv virtual env
This commit is contained in:
parent
8a63c06f27
commit
fce988687b
14
.github/workflows/release.yml
vendored
14
.github/workflows/release.yml
vendored
@ -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: |
|
||||
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user