From 031357759c4f688a95fe261d9aea2a97317b1061 Mon Sep 17 00:00:00 2001 From: Jirka Borovec Date: Thu, 3 Nov 2022 15:20:18 +0100 Subject: [PATCH] CI: drop nightly (#15480) --- .github/workflows/events-nightly.yml | 58 ---------------------------- .github/workflows/release-pypi.yml | 8 ---- 2 files changed, 66 deletions(-) delete mode 100644 .github/workflows/events-nightly.yml diff --git a/.github/workflows/events-nightly.yml b/.github/workflows/events-nightly.yml deleted file mode 100644 index 70194e498a..0000000000 --- a/.github/workflows/events-nightly.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: Nightly - -# https://jasonet.co/posts/scheduled-actions/ -# https://github.community/t/distinct-job-for-each-schedule/17811/2 -on: - schedule: - # At the end of every day - - cron: "0 0 * * *" - -# based on https://github.com/pypa/gh-action-pypi-publish -jobs: - pypi-release: - if: ${{ github.repository == 'Lightning-AI/lightning' }} # skip for forks - runs-on: ubuntu-20.04 - - steps: - # does nightly releases from feature branch - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - with: - python-version: 3.9 - - - name: Install dependencies - run: >- - python -m pip install --user --upgrade setuptools wheel - - - name: Build packages - run: | - pip install -q -r .actions/requirements.txt - python .actions/assistant.py prepare_nightly_version - python setup.py sdist bdist_wheel - ls -lh dist/ - - - name: Delay releasing - uses: juliangruber/sleep-action@v1 - with: - time: 5m - - # We do this, since failures on test.pypi aren't that bad - - name: Publish to Test PyPI - uses: pypa/gh-action-pypi-publish@v1.5.1 - with: - user: __token__ - password: ${{ secrets.test_pypi_password }} - repository_url: https://test.pypi.org/legacy/ - verbose: true - - # report failure to Slack - - name: Slack notification - if: failure() && github.event_name == 'schedule' - uses: ravsamhq/notify-slack-action@v2 - 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 }} diff --git a/.github/workflows/release-pypi.yml b/.github/workflows/release-pypi.yml index 0c7d0f892e..bba1b5fa15 100644 --- a/.github/workflows/release-pypi.yml +++ b/.github/workflows/release-pypi.yml @@ -7,14 +7,7 @@ on: release: types: [published] -# there are several consecutive actions: -# 1) determine which packages have been change at the time this event is processed -# 2) build related packages - app/pytorch or download latest from pypi -# 3) create the meta package - lightning -# 4) publish all new creations tada - jobs: - # run job which determine changed versions init: runs-on: ubuntu-20.04 steps: @@ -26,7 +19,6 @@ jobs: name: dist-packages-${{ github.sha }} path: dist - # based on https://github.com/pypa/gh-action-pypi-publish build-packages: needs: init runs-on: ubuntu-20.04