mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-11 18:44:21 +08:00
feat(ci): migrate to uv in CI (#3038)
* feat(ci): migrate to `uv` in CI * feat(ci): drop upgrade strategy * feat(ci): use `uv` in docs workflow * fix(ci/doc): update sphinx build cmd * fix(ci/doc): specify python path * (experimental) simplify * remove venv * Revert line wrap change for doc.yml --------- Co-authored-by: Brent Yi <yibrenth@gmail.com>
This commit is contained in:
1 parent
2b9171528b
commit
d1fc2ee338
3 files changed
+9
-5
No files matched your search
@@ -25,7 +25,8 @@ jobs:
|
||||
key: ${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pip install --upgrade --upgrade-strategy eager -e .[dev]
|
||||
pip install uv
|
||||
uv pip install --system --upgrade -e .[dev]
|
||||
- name: Run license checks
|
||||
run: |
|
||||
./nerfstudio/scripts/licensing/license_headers.sh --check
|
||||
@@ -33,9 +34,11 @@ jobs:
|
||||
run: |
|
||||
python ./nerfstudio/scripts/docs/add_nb_tags.py --check
|
||||
- name: Run Ruff Linter
|
||||
run: ruff check docs/ nerfstudio/ tests/ --output-format=github
|
||||
run: |
|
||||
ruff check docs/ nerfstudio/ tests/ --output-format=github
|
||||
- name: Run Ruff Formatter
|
||||
run: ruff format docs/ nerfstudio/ tests/ --diff
|
||||
run: |
|
||||
ruff format docs/ nerfstudio/ tests/ --diff
|
||||
- name: Run Pyright
|
||||
run: |
|
||||
pyright
|
||||
|
||||
@@ -18,7 +18,8 @@ jobs:
|
||||
python-version: '3.9'
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pip install .[docs]
|
||||
pip install uv
|
||||
uv pip install --system .[docs]
|
||||
- name: Sphinx build
|
||||
# fail on warnings
|
||||
run: |
|
||||
|
||||
Reference in new issue
Block a user