Skip to content

build(deps): bump astral-sh/setup-uv from 10.1.0 to 10.2.0 #593

build(deps): bump astral-sh/setup-uv from 10.1.0 to 10.2.0

build(deps): bump astral-sh/setup-uv from 10.1.0 to 10.2.0 #593

Workflow file for this run

name: test
on: [push, pull_request]
permissions:
contents: read
jobs:
unit:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Install uv
uses: astral-sh/setup-uv@v10.2.0
- name: Install dependencies
run: uv sync --only-group test
- name: Run tests and collect coverage
run: |
uv run coverage run -m pytest
uv run coverage report
uv run coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}
install:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Install uv
uses: astral-sh/setup-uv@v10.2.0
- name: Install package
run: uv tool install .
- name: Check version
run: |
version=$(grep version src/diffused/__init__.py | cut -d'"' -f 2)
set -e
[[ $(diffused --version) == $version ]]
[[ $(diffused -v) == $version ]]
- name: Get help
run: diffused --help
integration:
runs-on: ubuntu-latest
strategy:
matrix:
test:
- task: text-to-image
args: apple
- task: text-to-image
args: apple --output apple.jpg --width=512 --height=512 --device=cpu --negative-prompt=blurry --inference-steps=25 --seed=0 --number=2
- task: text-to-image
args: apple -o apple.png -W 256 -H 256 -d cpu -np dark -gs 9.5 -is 75 -S -1 -n 2
- task: image-to-image
args: tiger --image=https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png --inference-steps=10
- task: image-to-image
args: astro -i tests/img2img.png --no-safetensors
- task: inpainting
args: cat --image tests/inpaint.png --mask-image tests/inpaint_mask.png --strength 0.3 --number 2
- task: inpainting
args: cat -i tests/inpaint.png -mi tests/inpaint_mask.png --no-safetensors -s 0.3 -n 2
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Cache models
uses: actions/cache@v6
with:
path: ~/.cache/huggingface/
key: ${{ runner.os }}-huggingface
- name: Install uv
uses: astral-sh/setup-uv@v10.2.0
- name: Install package
run: uv tool install .
- name: Generate image
run: diffused segmind/tiny-sd ${{ matrix.test.args }}
env:
DO_NOT_TRACK: 1
- name: Upload artifact
uses: actions/upload-artifact@v7
with:
name: ${{ matrix.test.task }}-${{ hashFiles('**/*.jpg', '**/*.png') }}
path: |
*.jpg
*.png