mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-10 00:09:04 +00:00
Use universal uv lock in CI
This commit is contained in:
10
.github/workflows/briefcase.yml
vendored
10
.github/workflows/briefcase.yml
vendored
@@ -13,13 +13,13 @@ jobs:
|
|||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
|
- uses: astral-sh/setup-uv@v3
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
uv pip compile src/runtime_requirements.txt --universal --generate-hashes --emit-index-url -o runtime.lock
|
||||||
pip install pip-tools briefcase
|
git diff --exit-code runtime.lock
|
||||||
pip-compile --generate-hashes --output-file=requirements.lock src/requirements.txt
|
uv pip sync runtime.lock
|
||||||
git diff --exit-code requirements.lock
|
uv tool install briefcase
|
||||||
pip install --require-hashes -r requirements.lock
|
|
||||||
- name: Build with Briefcase
|
- name: Build with Briefcase
|
||||||
run: briefcase build
|
run: briefcase build
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
|
15
.github/workflows/python-ci.yml
vendored
15
.github/workflows/python-ci.yml
vendored
@@ -42,6 +42,7 @@ jobs:
|
|||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
- uses: astral-sh/setup-uv@v3
|
||||||
- name: Install build tools (Linux/macOS)
|
- name: Install build tools (Linux/macOS)
|
||||||
if: runner.os != 'Windows'
|
if: runner.os != 'Windows'
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -69,20 +70,18 @@ jobs:
|
|||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: echo "${{ steps.msys.outputs.msys2-location }}/mingw64/bin" >> $GITHUB_PATH
|
run: echo "${{ steps.msys.outputs.msys2-location }}/mingw64/bin" >> $GITHUB_PATH
|
||||||
- name: Cache pip
|
- name: Cache uv
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/pip
|
path: ~/.cache/uv
|
||||||
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.lock') }}
|
key: ${{ runner.os }}-uv-${{ hashFiles('requirements.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pip-
|
${{ runner.os }}-uv-
|
||||||
- name: Verify lockfile and install dependencies
|
- name: Verify lockfile and install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
uv pip compile src/requirements.txt --universal --generate-hashes --emit-index-url -o requirements.lock
|
||||||
pip install pip-tools
|
|
||||||
pip-compile --generate-hashes --output-file=requirements.lock src/requirements.txt
|
|
||||||
git diff --exit-code requirements.lock
|
git diff --exit-code requirements.lock
|
||||||
pip install --require-hashes -r requirements.lock
|
uv pip sync requirements.lock
|
||||||
- name: Run dependency scan
|
- name: Run dependency scan
|
||||||
run: scripts/dependency_scan.sh --ignore-vuln GHSA-wj6h-64fc-37mp
|
run: scripts/dependency_scan.sh --ignore-vuln GHSA-wj6h-64fc-37mp
|
||||||
- name: Determine stress args
|
- name: Determine stress args
|
||||||
|
1852
runtime.lock
Normal file
1852
runtime.lock
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user