Skip to content

Commit

Permalink
align with uv documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
tschm committed Nov 30, 2024
1 parent 8fcaef8 commit 41bf352
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 63 deletions.
44 changes: 0 additions & 44 deletions actions/setup-environment-uv/action.yml

This file was deleted.

4 changes: 2 additions & 2 deletions actions/uv/coverage/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ runs:
- name: Test on Linux
shell: bash
run: |
pip install --no-cache-dir \
uv pip install --no-cache-dir \
pytest \
pytest-cov \
pytest-html \
pytest-random-order
pytest --cov=${{ inputs.source-folder || 'cvx' }} --random-order --verbose \
uv run pytest --cov=${{ inputs.source-folder || 'cvx' }} --random-order --verbose \
--html=artifacts/tests/html-report/report.html \
--cov-report term \
--cov-report xml:artifacts/tests/coverage/coverage.xml \
Expand Down
4 changes: 2 additions & 2 deletions actions/uv/deptry/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ runs:
- name: Install deptry
shell: bash
run: |
pip install --no-cache-dir deptry
uv pip install --no-cache-dir deptry
- name: Run deptry
shell: bash
run : |
deptry ${{ inputs.source-folder || 'cvx' }}
uv run deptry ${{ inputs.source-folder || 'cvx' }}
6 changes: 3 additions & 3 deletions actions/uv/marimo/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ runs:
- name: Install marimo
shell: bash
run: |
pip install marimo
uv pip install marimo
- name: Convert *.py files in book/marimo folder to html files
Expand All @@ -56,8 +56,8 @@ runs:
# Convert to HTML
echo "Converting $file to HTML..."
marimo export html "$file" -o "artifacts/marimo/${filename}.html"
marimo export md "$file" -o "artifacts/marimo/${filename}.md"
uv run marimo export html "$file" -o "artifacts/marimo/${filename}.html"
uv run marimo export md "$file" -o "artifacts/marimo/${filename}.md"
done
- name: Archive marimo html
Expand Down
19 changes: 10 additions & 9 deletions actions/uv/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,19 @@ on:
runs:
using: "composite"
steps:
- name: Setup Python
uses: actions/setup-python@v5
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
python-version: ${{ inputs.python-version || '3.12' }}
version: "0.5.5"
#enable-cache: 'true'
#cache-local-path: '/tmp/cache'
#cache-dependency-glob: 'uv.lock'

- name: Install UV
- name: Set up Python
shell: bash
run: |
pip install uv
run: uv python install ${{ inputs.python-version || '3.12' }}

- name: Install Dependencies
- name: Install the project
shell: bash
run: |
uv pip install -r requirements.txt --system
uv pip install -e . --system
uv sync --all-extras --dev
4 changes: 2 additions & 2 deletions actions/uv/sphinx/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ runs:
- name: Install sphinx
shell: bash
run: |
pip install --no-cache-dir \
uv pip install --no-cache-dir \
sphinx==7.2.6 \
sphinx-autoapi \
sphinx-rtd-theme
- name: Build sphinx
shell: bash
run: |
sphinx-build -b html ${{ inputs.sphinx-folder || 'book/sphinx' }} artifacts/sphinx
uv run sphinx-build -b html ${{ inputs.sphinx-folder || 'book/sphinx' }} artifacts/sphinx
- name: Archive sphinx documentation
uses: actions/upload-artifact@v4
Expand Down
3 changes: 2 additions & 1 deletion actions/uv/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ runs:
- name: Test
shell: bash
run: |
pytest tests
uv pip install pytest
uv run pytest tests

0 comments on commit 41bf352

Please sign in to comment.