refactor: CI installation process to use 'uv' for faster dependency management

This commit is contained in:
gnzng
2025-11-10 12:23:09 -08:00
parent 5d43b05822
commit be28903be7
5 changed files with 67 additions and 78 deletions
+11 -10
View File
@@ -22,14 +22,15 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
- name: Install uv
run: |
pip install --upgrade pip
pip install -r requirements.txt
pip install -e . --no-deps
pip install uv
- name: Install dependencies with uv
run: |
uv pip install ."[tests]"
- name: Run tests
run: pytest
run: python -m pytest
build-docs:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
@@ -52,12 +53,12 @@ jobs:
with:
python-version: '3.9'
- name: Install dependencies
- name: Install uv
run: |
pip install --upgrade pip
pip install -r requirements.txt
pip install sphinx sphinx_rtd_theme sphinx-argparse
pip install -e . --no-deps
pip install uv
- name: Install dependencies with uv
run: |
uv pip install ."[docs]""
- name: Build docs
working-directory: docs