Unverified Commit 5d83f50c authored by Sayak Paul's avatar Sayak Paul Committed by GitHub
Browse files

[Release tests] make nightly workflow dispatchable. (#7541)

* make nightly workflow dispatchable.

* add a note about running the release tests to setup.py
parent 5d21d4a2
name: Nightly tests on main name: Nightly and release tests on main/release branch
on: on:
workflow_dispatch:
schedule: schedule:
- cron: "0 0 * * *" # every day at midnight - cron: "0 0 * * *" # every day at midnight
...@@ -245,6 +246,8 @@ jobs: ...@@ -245,6 +246,8 @@ jobs:
run_flax_tpu_tests: run_flax_tpu_tests:
name: Nightly Flax TPU Tests name: Nightly Flax TPU Tests
runs-on: docker-tpu runs-on: docker-tpu
if: github.event_name == 'schedule'
container: container:
image: diffusers/diffusers-flax-tpu image: diffusers/diffusers-flax-tpu
options: --shm-size "16gb" --ipc host -v /mnt/hf_cache:/mnt/cache/ --privileged options: --shm-size "16gb" --ipc host -v /mnt/hf_cache:/mnt/cache/ --privileged
...@@ -355,6 +358,7 @@ jobs: ...@@ -355,6 +358,7 @@ jobs:
run_nightly_tests_apple_m1: run_nightly_tests_apple_m1:
name: Nightly PyTorch MPS tests on MacOS name: Nightly PyTorch MPS tests on MacOS
runs-on: [ self-hosted, apple-m1 ] runs-on: [ self-hosted, apple-m1 ]
if: github.event_name == 'schedule'
steps: steps:
- name: Checkout diffusers - name: Checkout diffusers
......
...@@ -23,13 +23,14 @@ To create the package for PyPI. ...@@ -23,13 +23,14 @@ To create the package for PyPI.
If releasing on a special branch, copy the updated README.md on the main branch for the commit you will make 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. 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. 3. Checkout the release branch (v<RELEASE>-release, for example v4.19-release), and commit these changes with the
4. Checkout the release branch (v<RELEASE>-release, for example v4.19-release), and commit these changes with the
message: "Release: <RELEASE>" and push. message: "Release: <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). 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<RELEASE> -m 'Adds tag v<RELEASE> for PyPI'" 6. Add a tag in git to mark the release: "git tag v<RELEASE> -m 'Adds tag v<RELEASE> for PyPI'"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment