diff --git a/.github/checkgroup.yml b/.github/checkgroup.yml index 5269704f40698..5564879229f08 100644 --- a/.github/checkgroup.yml +++ b/.github/checkgroup.yml @@ -176,14 +176,15 @@ subprojects: - "lightning-fabric (GPUs) (testing Fabric | latest)" - "lightning-fabric (GPUs) (testing Lightning | latest)" - - id: "lightning_fabric: TPU workflow" - paths: - # tpu CI availability is very limited, so we only require tpu tests - # to pass when their configurations are modified - - ".github/workflows/tpu-tests.yml" - - "tests/tests_fabric/run_tpu_tests.sh" - checks: - - "test-on-tpus (pytorch, pjrt, v4-8)" + # Temporarily disabled + # - id: "lightning_fabric: TPU workflow" + # paths: + # # tpu CI availability is very limited, so we only require tpu tests + # # to pass when their configurations are modified + # - ".github/workflows/tpu-tests.yml" + # - "tests/tests_fabric/run_tpu_tests.sh" + # checks: + # - "test-on-tpus (pytorch, pjrt, v4-8)" # SECTION: common diff --git a/.github/workflows/_legacy-checkpoints.yml b/.github/workflows/_legacy-checkpoints.yml index 1df733aca34f2..a5ef99ef9e267 100644 --- a/.github/workflows/_legacy-checkpoints.yml +++ b/.github/workflows/_legacy-checkpoints.yml @@ -111,9 +111,13 @@ jobs: retention-days: ${{ env.KEEP_DAYS }} include-hidden-files: true + - name: access secrets + # export to env bool if secrets.AWS_REGION is not empty + run: echo "WITH_SECRETS=$([ -n '${{ secrets.AWS_REGION }}' ] && echo 1 || echo 0)" >> $GITHUB_ENV + - run: pip install -r requirements/ci.txt - name: Upload checkpoints to S3 - if: ${{ secrets[AWS_REGION] != '' }} + if: ${{ env.WITH_SECRETS == '1' }} working-directory: ${{ env.LEGACY_FOLDER }} env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }} diff --git a/.github/workflows/ci-checkpoints.yml.disabled b/.github/workflows/ci-checkpoints.yml similarity index 100% rename from .github/workflows/ci-checkpoints.yml.disabled rename to .github/workflows/ci-checkpoints.yml diff --git a/.github/workflows/release-pkg.yml b/.github/workflows/release-pkg.yml index 944e69476a358..348d4ce753117 100644 --- a/.github/workflows/release-pkg.yml +++ b/.github/workflows/release-pkg.yml @@ -179,12 +179,12 @@ jobs: with: pkg-folder: dist/${{ steps.folder.outputs.pkg }} pypi-token: ${{ secrets[format('PYPI_TOKEN_{0}', matrix.name)] }} -# FIXME: this is not working suddenly, Unrecognized named-value: 'secrets' -# legacy-checkpoints: -# needs: [build-packages] -# uses: ./.github/workflows/_legacy-checkpoints.yml -# with: -# push_to_s3: ${{ startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' }} -# upload_local: ${{ startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' }} -# create_pr: ${{ startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' }} -# secrets: inherit + + legacy-checkpoints: + needs: [build-packages] + uses: ./.github/workflows/_legacy-checkpoints.yml + with: + push_to_s3: ${{ startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' }} + upload_local: ${{ startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' }} + create_pr: ${{ startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' }} + secrets: inherit diff --git a/.github/workflows/tpu-tests.yml.disabled b/.github/workflows/tpu-tests.yml similarity index 100% rename from .github/workflows/tpu-tests.yml.disabled rename to .github/workflows/tpu-tests.yml