Skip to content

Commit

Permalink
Optimize git archive (#1175)
Browse files Browse the repository at this point in the history
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Chores**
- Updated `.gitattributes` to ignore image files (`.png`, `.jpg`,
`.gif`) and Jupyter notebooks (`.ipynb`) during repository exports.
- Added `onediff-src.zip` to `.gitignore` to prevent tracking of
specific archive files.
- Improved GitHub Actions workflow for clearer installation and testing
phases for the `diffusers_examples` test suite.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
jackalcooper authored Dec 30, 2024
1 parent 9991d63 commit c8f513e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.png export-ignore
*.jpg export-ignore
*.ipynb export-ignore
*.gif export-ignore
6 changes: 3 additions & 3 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,9 @@ jobs:
- if: matrix.test-suite == 'diffusers_examples'
run: docker exec -w /src/onediff/onediff_diffusers_extensions ${{ env.CONTAINER_NAME }} bash examples/unet_save_and_load.sh --model_id=/share_nfs/hf_models/stable-diffusion-xl-base-1.0
- if: matrix.test-suite == 'diffusers_examples'
run: |
docker exec ${{ env.CONTAINER_NAME }} python3 -m pip install --user scikit-image "numpy<2" "diffusers==0.23" peft pytest "huggingface_hub<=0.25.0"
docker exec -e ONEFLOW_MLIR_ENABLE_INFERENCE_OPTIMIZATION=0 ${{ env.CONTAINER_NAME }} python3 -m pytest -v onediff_diffusers_extensions/tests/test_lora.py --disable-warnings
run: docker exec ${{ env.CONTAINER_NAME }} python3 -m pip install --user scikit-image "numpy<2" "diffusers==0.23" peft pytest "huggingface_hub<=0.25.0"
- if: matrix.test-suite == 'diffusers_examples'
run: docker exec -e ONEFLOW_MLIR_ENABLE_INFERENCE_OPTIMIZATION=0 ${{ env.CONTAINER_NAME }} python3 -m pytest -v onediff_diffusers_extensions/tests/test_lora.py --disable-warnings

- name: Install Requirements for WebUI
if: matrix.test-suite == 'webui'
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,4 @@ onediff_comfy_nodes/benchmarks/results/

# setuptools_scm
_version.py
onediff-src.zip

0 comments on commit c8f513e

Please sign in to comment.