diff --git a/.github/workflows/nightly_tests.yml b/.github/workflows/nightly_tests.yml index 70ee1d47294e..d489da8e48eb 100644 --- a/.github/workflows/nightly_tests.yml +++ b/.github/workflows/nightly_tests.yml @@ -1,6 +1,7 @@ -name: Nightly tests on main +name: Nightly and release tests on main/release branch on: + workflow_dispatch: schedule: - cron: "0 0 * * *" # every day at midnight @@ -245,6 +246,8 @@ jobs: run_flax_tpu_tests: name: Nightly Flax TPU Tests runs-on: docker-tpu + if: github.event_name == 'schedule' + container: image: diffusers/diffusers-flax-tpu options: --shm-size "16gb" --ipc host -v /mnt/hf_cache:/mnt/cache/ --privileged @@ -355,6 +358,7 @@ jobs: run_nightly_tests_apple_m1: name: Nightly PyTorch MPS tests on MacOS runs-on: [ self-hosted, apple-m1 ] + if: github.event_name == 'schedule' steps: - name: Checkout diffusers diff --git a/setup.py b/setup.py index 89bb1c9464c5..bbf8ecfde174 100644 --- a/setup.py +++ b/setup.py @@ -23,13 +23,14 @@ If releasing on a special branch, copy the updated README.md on the main branch for the commit you will make for the post-release and run `make fix-copies` on the main branch as well. -2. Run Tests for Amazon Sagemaker. The documentation is located in `./tests/sagemaker/README.md`, otherwise @philschmid. +2. Unpin specific versions from setup.py that use a git install. -3. Unpin specific versions from setup.py that use a git install. - -4. Checkout the release branch (v-release, for example v4.19-release), and commit these changes with the +3. Checkout the release branch (v-release, for example v4.19-release), and commit these changes with the message: "Release: " and push. +4. Manually trigger the "Nightly and release tests on main/release branch" workflow from the release branch. Wait for + the tests to complete. We can safely ignore the known test failures. + 5. Wait for the tests on main to be completed and be green (otherwise revert and fix bugs). 6. Add a tag in git to mark the release: "git tag v -m 'Adds tag v for PyPI'"