deprecate LatentDiffusionAutoencoder's decode_latents #1272
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: ["**"] | |
pull_request_target: | |
types: [labeled] | |
jobs: | |
lint_and_typecheck: | |
if: ${{ github.event_name == 'push' || github.event.label.name == 'run-ci' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: check changes | |
uses: dorny/paths-filter@v3 | |
id: changes | |
with: | |
filters: | | |
sources: | |
- src/** | |
- tests/** | |
- scripts/** | |
- .github/workflows/ci.yml | |
- name: Install Rye | |
if: steps.changes.outputs.sources == 'true' | |
uses: eifinger/setup-rye@v3 | |
with: | |
enable-cache: true | |
cache-prefix: "refiners-rye-cache" | |
- name: add Rye shims dir to PATH | |
if: steps.changes.outputs.sources == 'true' | |
run: echo "$RYE_HOME/shims" >> $GITHUB_PATH | |
- name: use uv | |
if: steps.changes.outputs.sources == 'true' | |
run: rye config --set-bool behavior.use-uv=true | |
- name: pin python | |
if: steps.changes.outputs.sources == 'true' | |
run: rye pin 3.10 | |
- name: rye sync | |
if: steps.changes.outputs.sources == 'true' | |
run: rye sync --all-features | |
- name: rye fmt | |
if: steps.changes.outputs.sources == 'true' | |
run: rye fmt --check | |
- name: rye lint | |
if: steps.changes.outputs.sources == 'true' | |
run: rye lint | |
- name: typecheck | |
if: steps.changes.outputs.sources == 'true' | |
run: rye run pyright |