2021-11-10 16:59:10 +00:00
|
|
|
name: Nightly
|
2020-09-19 22:28:34 +00:00
|
|
|
|
|
|
|
# https://jasonet.co/posts/scheduled-actions/
|
2021-01-06 16:59:42 +00:00
|
|
|
# https://github.community/t/distinct-job-for-each-schedule/17811/2
|
2020-09-19 22:28:34 +00:00
|
|
|
on:
|
|
|
|
schedule:
|
2021-07-14 15:04:33 +00:00
|
|
|
# At the end of every day
|
|
|
|
- cron: "0 0 * * *"
|
|
|
|
|
|
|
|
env:
|
|
|
|
PUSH_TO_HUB: true
|
2020-09-19 22:28:34 +00:00
|
|
|
|
|
|
|
# based on https://github.com/pypa/gh-action-pypi-publish
|
|
|
|
jobs:
|
2020-09-25 13:58:01 +00:00
|
|
|
pypi-release:
|
2021-08-02 18:12:13 +00:00
|
|
|
if: ${{ github.repository_owner == 'PyTorchLightning' }}
|
2020-09-19 22:28:34 +00:00
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
|
|
|
|
steps:
|
2021-01-06 16:59:42 +00:00
|
|
|
# does nightly releases from feature branch
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-python@v2
|
|
|
|
with:
|
2021-10-26 11:58:20 +00:00
|
|
|
python-version: 3.9
|
2021-01-06 16:59:42 +00:00
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: >-
|
|
|
|
python -m pip install --user --upgrade setuptools wheel
|
|
|
|
|
|
|
|
- name: Build packages
|
|
|
|
run: |
|
2022-03-11 11:13:43 +00:00
|
|
|
pip install -q fire
|
|
|
|
python .actions/assistant.py prepare-nightly-version
|
2021-01-06 16:59:42 +00:00
|
|
|
python setup.py sdist bdist_wheel
|
|
|
|
ls -lh dist/
|
|
|
|
|
|
|
|
- name: Delay releasing
|
|
|
|
uses: juliangruber/sleep-action@v1
|
|
|
|
with:
|
|
|
|
time: 5m
|
|
|
|
|
2021-01-08 15:36:49 +00:00
|
|
|
# We do this, since failures on test.pypi aren't that bad
|
2021-01-06 16:59:42 +00:00
|
|
|
- name: Publish to Test PyPI
|
|
|
|
uses: pypa/gh-action-pypi-publish@v1.4.1
|
|
|
|
with:
|
|
|
|
user: __token__
|
|
|
|
password: ${{ secrets.test_pypi_password }}
|
|
|
|
repository_url: https://test.pypi.org/legacy/
|
|
|
|
verbose: true
|
2020-09-25 13:58:01 +00:00
|
|
|
|
2022-04-13 15:24:08 +00:00
|
|
|
# report failure to Slack
|
|
|
|
- name: Slack notification
|
|
|
|
if: failure() && github.event_name == 'schedule'
|
|
|
|
uses: ravsamhq/notify-slack-action@v1
|
|
|
|
with:
|
|
|
|
status: ${{ job.status }}
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
notification_title: 'Publish nightly package to test.pypi.org'
|
|
|
|
message_format: '{emoji} *{workflow}* {status_message}, see <{run_url}|detail>, cc: <@UR9FXE6QG>' #Borda
|
|
|
|
env:
|
|
|
|
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
|
|
|
|
2020-09-25 13:58:01 +00:00
|
|
|
docker-XLA:
|
2021-08-02 18:12:13 +00:00
|
|
|
if: ${{ github.repository_owner == 'PyTorchLightning' }}
|
2020-09-25 13:58:01 +00:00
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2021-10-29 06:48:05 +00:00
|
|
|
# the config used in '.circleci/config.yml`'
|
2021-07-14 15:04:33 +00:00
|
|
|
python_version: ["3.7"]
|
2021-10-29 06:48:05 +00:00
|
|
|
xla_version: ["1.8"]
|
2021-08-02 18:12:13 +00:00
|
|
|
|
2020-09-25 13:58:01 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2020-10-25 12:16:10 +00:00
|
|
|
# https://github.com/docker/setup-buildx-action
|
2020-10-26 10:47:09 +00:00
|
|
|
# Set up Docker Buildx - to use cache-from and cache-to argument of buildx command
|
|
|
|
- uses: docker/setup-buildx-action@v1
|
2020-10-25 12:16:10 +00:00
|
|
|
- name: Login to DockerHub
|
|
|
|
uses: docker/login-action@v1
|
2020-09-25 13:58:01 +00:00
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
2020-10-25 12:16:10 +00:00
|
|
|
|
|
|
|
- name: Publish XLA to Docker Hub
|
2020-11-04 09:08:37 +00:00
|
|
|
# publish master/release
|
2020-10-25 12:16:10 +00:00
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
build-args: |
|
|
|
|
PYTHON_VERSION=${{ matrix.python_version }}
|
|
|
|
XLA_VERSION=${{ matrix.xla_version }}
|
|
|
|
file: dockers/base-xla/Dockerfile
|
2021-07-14 15:04:33 +00:00
|
|
|
push: ${{ env.PUSH_TO_HUB }}
|
2020-10-25 12:16:10 +00:00
|
|
|
tags: pytorchlightning/pytorch_lightning:base-xla-py${{ matrix.python_version }}-torch${{ matrix.xla_version }}
|
2020-09-25 13:58:01 +00:00
|
|
|
timeout-minutes: 55
|
|
|
|
|
2022-04-13 15:24:08 +00:00
|
|
|
# report failure to Slack
|
|
|
|
- name: Slack notification
|
|
|
|
if: failure() && github.event_name == 'schedule'
|
|
|
|
uses: ravsamhq/notify-slack-action@v1
|
|
|
|
with:
|
|
|
|
status: ${{ job.status }}
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
notification_title: ${{ format('XLA; {0} py{1} for *{2}*', runner.os, matrix.python_version, matrix.xla_version) }}
|
|
|
|
message_format: '{emoji} *{workflow}* {status_message}, see <{run_url}|detail>, cc: <@U01GD29QCAV>' #kaushikb11
|
|
|
|
env:
|
|
|
|
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
|
|
|
|
2021-07-14 15:04:33 +00:00
|
|
|
docker-CUDA:
|
2021-08-02 18:12:13 +00:00
|
|
|
if: ${{ github.repository_owner == 'PyTorchLightning' }}
|
2020-09-25 13:58:01 +00:00
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2022-02-16 20:15:44 +00:00
|
|
|
include:
|
|
|
|
# the config used in '.azure-pipelines/gpu-tests.yml'
|
2022-05-06 02:56:57 +00:00
|
|
|
- {python_version: "3.7", pytorch_version: "1.8", cuda_version: "10.2", ubuntu_version: "18.04"}
|
|
|
|
- {python_version: "3.7", pytorch_version: "1.10", cuda_version: "11.1", ubuntu_version: "20.04"}
|
|
|
|
- {python_version: "3.7", pytorch_version: "1.11", cuda_version: "11.3.1", ubuntu_version: "20.04"}
|
2022-04-13 15:24:08 +00:00
|
|
|
# latest (used in Tutorials)
|
2022-05-06 02:56:57 +00:00
|
|
|
- {python_version: "3.8", pytorch_version: "1.8", cuda_version: "11.1", ubuntu_version: "20.04"}
|
|
|
|
- {python_version: "3.8", pytorch_version: "1.9", cuda_version: "11.1", ubuntu_version: "20.04"}
|
|
|
|
- {python_version: "3.9", pytorch_version: "1.10", cuda_version: "11.1", ubuntu_version: "20.04"}
|
|
|
|
- {python_version: "3.9", pytorch_version: "1.11", cuda_version: "11.3.1", ubuntu_version: "20.04"}
|
2020-09-25 13:58:01 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2020-10-26 10:47:09 +00:00
|
|
|
- uses: docker/setup-buildx-action@v1
|
2020-10-25 12:16:10 +00:00
|
|
|
- name: Login to DockerHub
|
|
|
|
uses: docker/login-action@v1
|
2020-09-25 13:58:01 +00:00
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
2020-10-25 12:16:10 +00:00
|
|
|
|
|
|
|
- name: Publish CUDA to Docker Hub
|
2020-11-04 09:08:37 +00:00
|
|
|
# publish master/release
|
2020-10-25 12:16:10 +00:00
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
build-args: |
|
|
|
|
PYTHON_VERSION=${{ matrix.python_version }}
|
|
|
|
PYTORCH_VERSION=${{ matrix.pytorch_version }}
|
2022-04-21 22:10:42 +00:00
|
|
|
CUDA_VERSION=${{ matrix.cuda_version }}
|
2022-05-06 02:56:57 +00:00
|
|
|
UBUNTU_VERSION=${{ matrix.ubuntu_version }}
|
2020-10-25 12:16:10 +00:00
|
|
|
file: dockers/base-cuda/Dockerfile
|
2021-07-14 15:04:33 +00:00
|
|
|
push: ${{ env.PUSH_TO_HUB }}
|
2020-10-25 12:16:10 +00:00
|
|
|
tags: pytorchlightning/pytorch_lightning:base-cuda-py${{ matrix.python_version }}-torch${{ matrix.pytorch_version }}
|
2021-10-25 20:56:47 +00:00
|
|
|
timeout-minutes: 85
|
2020-09-25 13:58:01 +00:00
|
|
|
|
2022-04-13 15:24:08 +00:00
|
|
|
# report failure to Slack
|
|
|
|
- name: Slack notification
|
|
|
|
if: failure() && github.event_name == 'schedule'
|
|
|
|
uses: ravsamhq/notify-slack-action@v1
|
|
|
|
with:
|
|
|
|
status: ${{ job.status }}
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
notification_title: ${{ format('CUDA; {0} py{1} for *{2}*', runner.os, matrix.python_version, matrix.pytorch_version) }}
|
|
|
|
message_format: '{emoji} *{workflow}* {status_message}, see <{run_url}|detail>, cc: <@U01A5T7EY9M>' #akihironitta
|
|
|
|
env:
|
|
|
|
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
|
|
|
|
2021-07-14 15:04:33 +00:00
|
|
|
docker-Conda:
|
2021-08-02 18:12:13 +00:00
|
|
|
if: ${{ github.repository_owner == 'PyTorchLightning' }}
|
2021-07-14 15:04:33 +00:00
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2022-03-10 18:38:47 +00:00
|
|
|
include:
|
|
|
|
# see: https://pytorch.org/get-started/previous-versions/
|
|
|
|
- {python_version: "3.8", pytorch_version: "1.8", cuda_version: "11.1"}
|
|
|
|
- {python_version: "3.8", pytorch_version: "1.9", cuda_version: "11.1"}
|
|
|
|
- {python_version: "3.8", pytorch_version: "1.10", cuda_version: "11.1"}
|
|
|
|
- {python_version: "3.9", pytorch_version: "1.11", cuda_version: "11.3.1"}
|
|
|
|
# nightly: add when there's a release candidate
|
|
|
|
# - {python_version: "3.9", pytorch_version: "1.12"}
|
2021-07-14 15:04:33 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- uses: docker/setup-buildx-action@v1
|
|
|
|
- name: Login to DockerHub
|
|
|
|
uses: docker/login-action@v1
|
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
|
2020-10-02 09:26:21 +00:00
|
|
|
- name: Publish Conda to Docker Hub
|
2020-11-04 09:08:37 +00:00
|
|
|
# publish master/release
|
2020-10-25 12:16:10 +00:00
|
|
|
uses: docker/build-push-action@v2
|
2020-09-25 13:58:01 +00:00
|
|
|
with:
|
2020-10-25 12:16:10 +00:00
|
|
|
build-args: |
|
|
|
|
PYTHON_VERSION=${{ matrix.python_version }}
|
|
|
|
PYTORCH_VERSION=${{ matrix.pytorch_version }}
|
2022-03-10 18:38:47 +00:00
|
|
|
CUDA_VERSION=${{ matrix.cuda_version }}
|
2020-10-26 10:47:09 +00:00
|
|
|
file: dockers/base-conda/Dockerfile
|
2021-07-14 15:04:33 +00:00
|
|
|
push: ${{ env.PUSH_TO_HUB }}
|
2020-10-26 10:47:09 +00:00
|
|
|
tags: pytorchlightning/pytorch_lightning:base-conda-py${{ matrix.python_version }}-torch${{ matrix.pytorch_version }}
|
2021-10-25 20:56:47 +00:00
|
|
|
timeout-minutes: 85
|
2021-03-19 21:25:46 +00:00
|
|
|
|
2022-04-13 15:24:08 +00:00
|
|
|
# report failure to Slack
|
|
|
|
- name: Slack notification
|
|
|
|
if: failure() && github.event_name == 'schedule'
|
|
|
|
uses: ravsamhq/notify-slack-action@v1
|
|
|
|
with:
|
|
|
|
status: ${{ job.status }}
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
notification_title: ${{ format('Conda; {0} py{1} for *{2}*', runner.os, matrix.python_version, matrix.pytorch_version) }}
|
|
|
|
message_format: '{emoji} *{workflow}* {status_message}, see <{run_url}|detail>, cc: <@U01A5T7EY9M>' #akihironitta
|
|
|
|
env:
|
|
|
|
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
|
|
|
|
2021-07-14 15:04:33 +00:00
|
|
|
docker-IPU:
|
2021-08-02 18:12:13 +00:00
|
|
|
if: ${{ github.repository_owner == 'PyTorchLightning' }}
|
2021-05-07 12:07:29 +00:00
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2021-10-29 06:48:05 +00:00
|
|
|
# the config used in 'dockers/ipu-ci-runner/Dockerfile'
|
2021-05-07 12:07:29 +00:00
|
|
|
include:
|
2022-03-08 18:02:32 +00:00
|
|
|
- {python_version: "3.9", pytorch_version: "1.9"}
|
2021-05-07 12:07:29 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
# https://github.com/docker/setup-buildx-action
|
|
|
|
# Set up Docker Buildx - to use cache-from and cache-to argument of buildx command
|
|
|
|
- uses: docker/setup-buildx-action@v1
|
|
|
|
- name: Login to DockerHub
|
|
|
|
uses: docker/login-action@v1
|
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
|
|
|
|
- name: Publish IPU base to Docker Hub
|
|
|
|
# publish master/release
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
build-args: |
|
|
|
|
PYTHON_VERSION=${{ matrix.python_version }}
|
|
|
|
PYTORCH_VERSION=${{ matrix.pytorch_version }}
|
|
|
|
file: dockers/base-ipu/Dockerfile
|
2021-07-14 15:04:33 +00:00
|
|
|
push: ${{ env.PUSH_TO_HUB }}
|
2021-05-07 12:07:29 +00:00
|
|
|
tags: pytorchlightning/pytorch_lightning:base-ipu-py${{ matrix.python_version }}-torch${{ matrix.pytorch_version }}
|
|
|
|
timeout-minutes: 55
|
|
|
|
|
|
|
|
- name: Publish IPU CI runner to Docker Hub
|
|
|
|
# publish master/release
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
build-args: |
|
|
|
|
PYTHON_VERSION=${{ matrix.python_version }}
|
|
|
|
PYTORCH_VERSION=${{ matrix.pytorch_version }}
|
|
|
|
file: dockers/ipu-ci-runner/Dockerfile
|
2021-07-14 15:04:33 +00:00
|
|
|
push: ${{ env.PUSH_TO_HUB }}
|
2021-05-07 12:07:29 +00:00
|
|
|
tags: pytorchlightning/pytorch_lightning:ipu-ci-runner-py${{ matrix.python_version }}
|
|
|
|
timeout-minutes: 55
|
2022-04-13 15:24:08 +00:00
|
|
|
|
|
|
|
# report failure to Slack
|
|
|
|
- name: Slack notification
|
|
|
|
if: failure() && github.event_name == 'schedule'
|
|
|
|
uses: ravsamhq/notify-slack-action@v1
|
|
|
|
with:
|
|
|
|
status: ${{ job.status }}
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
notification_title: ${{ format('IPU; {0} py{1} for *{2}*', runner.os, matrix.python_version, matrix.pytorch_version) }}
|
|
|
|
message_format: '{emoji} *{workflow}* {status_message}, see <{run_url}|detail>, cc: <@U01BULUS2BG>' #SeanNaren
|
|
|
|
env:
|
|
|
|
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|