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:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Remove Hardcoded Version (if present)
|
- name: Create Virtual Environment
|
||||||
run: |
|
run: |
|
||||||
sed -i '/^version =/d' pyproject.toml
|
uv venv
|
||||||
- name: Update Dependencies
|
- name: Activate Virtual Environment and Install Dependencies
|
||||||
run: |
|
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
|
uv pip install --upgrade setuptools wheel hatchling twine
|
||||||
- name: Build app
|
- name: Build app
|
||||||
run: |
|
run: |
|
||||||
uv sync --frozen
|
source .venv/bin/activate # Activate the virtual environment again if needed
|
||||||
uv build
|
uv build
|
||||||
id: build_cache
|
id: build_cache
|
||||||
if: success()
|
if: success()
|
||||||
- name: Validate Metadata
|
- name: Validate Metadata
|
||||||
run: |
|
run: |
|
||||||
|
source .venv/bin/activate
|
||||||
uv run twine check dist/*
|
uv run twine check dist/*
|
||||||
- name: Debug Dist Directory
|
- name: Debug Dist Directory
|
||||||
run: |
|
run: |
|
||||||
@ -70,6 +73,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
- name: Restore Virtual Environment
|
||||||
|
run: |
|
||||||
|
source .venv/bin/activate
|
||||||
- name: Semantic Release
|
- name: Semantic Release
|
||||||
uses: cycjimmy/semantic-release-action@v4.1.0
|
uses: cycjimmy/semantic-release-action@v4.1.0
|
||||||
with:
|
with:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user