Remote tests #142
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Remote tests | |
| on: | |
| schedule: | |
| - cron: "0 6 * * *" # Daily at 2am EST | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| DailyTests: | |
| uses: ./.github/workflows/testing.yml | |
| secrets: | |
| S3_LOG_EXTRACTION_PASSWORD: ${{ secrets.S3_LOG_EXTRACTION_PASSWORD }} | |
| CODECOV_CREDENTIALS: ${{ secrets.CODECOV_CREDENTIALS }} | |
| NotifyOnFailure: | |
| runs-on: ubuntu-latest | |
| needs: [ DailyTests ] | |
| if: ${{ always() && needs.DailyTests.result == 'failure' }} | |
| steps: | |
| - uses: dawidd6/action-send-mail@v3 | |
| with: | |
| server_address: smtp.gmail.com | |
| server_port: 465 | |
| username: ${{ secrets.MAIL_USERNAME }} | |
| password: ${{ secrets.MAIL_PASSWORD }} | |
| subject: "CI Failure: dandi-s3-log-extraction Daily Remote Tests" | |
| to: cody.c.baker.phd@gmail.com # Add more with comma separation (no spaces) | |
| from: dandi-s3-log-extraction | |
| body: "The daily test workflow failed, please check status at https://github.com/dandi/dandi-s3-log-extraction/actions/workflows/daily_remote_tests.yml" | |
| # TODO: move to different workflow for badge | |
| # DailyRemoteTests: | |
| # uses: ./.github/workflows/remote_testing.yml | |
| # secrets: | |
| # IP_HASH_SALT: ${{ secrets.IP_HASH_SALT }} | |
| # IPINFO_API_KEY: ${{ secrets.IPINFO_API_KEY }} | |
| # CODECOV_CREDENTIALS: ${{ secrets.CODECOV_CREDENTIALS }} |