Deploy daily tests #10
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: Deploy daily 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: | |
| 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: nwb2bids Daily Tests" | |
| to: [email protected] # Add more with comma separation (no spaces) | |
| from: s3-log-extraction | |
| body: "The daily test workflow failed, please check status at https://github.com/dandi/s3-log-extraction/actions/workflows/dailies.yml" | |
| # LiveServices: | |
| # uses: ./.github/workflows/testing_live_services.yml | |
| # secrets: | |
| # IP_HASH_SALT: ${{ secrets.IP_HASH_SALT }} | |
| # IPINFO_API_KEY: ${{ secrets.IPINFO_API_KEY }} | |
| # CODECOV_CREDENTIALS: ${{ secrets.CODECOV_CREDENTIALS }} |