Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to uv for GitHub actions #200

Merged
merged 4 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
# Build documentation
- name: Building documentation
run: |
pip install --upgrade pip
pip install -e ".[dev]"
pip install -r docs/requirements.txt
pip install uv
uv pip install --system -e ".[dev]"
uv pip install --system -r docs/requirements.txt
sphinx-build docs/source docs/build -b dirhtml

# Deploy
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/formatting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python 3.12
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
python-version: 3.12
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -e ".[dev,examples]"
pip install uv
uv pip install --system -e ".[dev,examples]"
- name: Run Ruff
run: ruff check docs/ src/ examples/
- name: Run Ruff format
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v2
Expand All @@ -21,8 +21,8 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -e ".[dev,examples]"
pip install uv
uv pip install --system -e ".[dev,examples]"
- name: Test with mypy
run: |
mypy --install-types --non-interactive .
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
python-version: "3.8"
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -e ".[dev]"
pip install build twine
pip install uv
uv pip install --system -e ".[dev]"
uv pip install --system build twine
# Build client files.
python -c "import viser; viser.ViserServer()"
- name: Strip unsupported tags in README
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pyright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v2
Expand All @@ -21,8 +21,8 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -e ".[dev,examples]"
pip install uv
uv pip install --system -e ".[dev,examples]"
- name: Run pyright
run: |
pyright .
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent"
]
Expand Down
Loading