Skip to content

Commit 96fca4e

Browse files
use uv lock file with --frozen for CI
1 parent 0d52dd6 commit 96fca4e

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/run_tests.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ jobs:
2121

2222
name: Python ${{ matrix.python-version }} tests
2323
steps:
24-
- uses: actions/checkout@v5
24+
- name: Checkout repository with LFS
25+
uses: actions/checkout@v5
2526
with:
2627
lfs: 'true'
2728

@@ -36,7 +37,7 @@ jobs:
3637
enable-cache: true
3738

3839
- name: Install package
39-
run: uv sync --extra dev
40+
run: uv sync --extra dev --frozen
4041

4142
- name: Run linting
4243
run: uv run ruff check ncompare

.github/workflows/version-and-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ jobs:
164164
echo "✅ Tagged $VERSION"
165165
166166
- name: Install dependencies
167-
run: uv sync --extra dev
167+
run: uv sync --extra dev --frozen
168168

169169
- name: Build package
170170
run: uv build

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ build:
1616
- pip install uv
1717
post_install:
1818
# Install dependencies into the RTD virtualenv using uv
19-
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH uv sync --extra dev
19+
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH uv sync --extra dev --frozen
2020
# Replace the 'mkdocs' key with a manual 'build' job
2121
build:
2222
html:

0 commit comments

Comments
 (0)