This repository has been archived by the owner on Jan 12, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from catalyst-cooperative/dev
Switch to using requester pays on storage buckets. Merging this even though I need to integrate these comments into the documentation, to deal with the bot automerge stuff. Should have put it on a feature branch but oh well. 😬
- Loading branch information
Showing
9 changed files
with
191 additions
and
74 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: pre-commit-ci-auto-merge | ||
|
||
on: | ||
workflow_run: | ||
types: | ||
- completed | ||
workflows: | ||
- 'tox-pytest' | ||
|
||
jobs: | ||
bot-auto-merge: | ||
name: Auto-merge passing pre-commit-ci PRs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Auto-merge passing pre-commit-ci PRs | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
uses: ridedott/merge-me-action@v2 | ||
with: | ||
GITHUB_LOGIN: pre-commit-ci | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ name: tox-pytest | |
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
ci-test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
|
@@ -15,6 +15,13 @@ jobs: | |
with: | ||
fetch-depth: 2 | ||
|
||
- id: 'auth' | ||
name: 'Authenticate to Google Cloud' | ||
uses: 'google-github-actions/auth@v0' | ||
with: | ||
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}' | ||
export_environment_variables: true | ||
|
||
- name: Set up conda environment for testing | ||
uses: conda-incubator/[email protected] | ||
with: | ||
|
@@ -42,6 +49,11 @@ jobs: | |
- name: Upload test coverage report to CodeCov | ||
uses: codecov/codecov-action@v3 | ||
|
||
ci-notify: | ||
runs-on: ubuntu-latest | ||
if: ${{ always() }} | ||
needs: ci-test | ||
steps: | ||
- name: Inform the Codemonkeys | ||
uses: 8398a7/action-slack@v3 | ||
with: | ||
|
@@ -52,12 +64,22 @@ jobs: | |
username: 'action-slack', | ||
icon_emoji: ':octocat:', | ||
attachments: [{ | ||
color: '${{ job.status }}' === 'success' ? 'good' : '${{ job.status }}' === 'failure' ? 'danger' : 'warning', | ||
text: `${process.env.AS_WORKFLOW}\n${process.env.AS_JOB} (${process.env.AS_COMMIT}) of ${process.env.AS_REPO}@${process.env.AS_REF} by ${process.env.AS_AUTHOR} ${{ job.status }} in ${process.env.AS_TOOK}`, | ||
color: '${{ needs.ci-test.result }}' === 'success' ? 'good' : '${{ needs.ci-test.result }}' === 'failure' ? 'danger' : 'warning', | ||
text: `${process.env.AS_REPO}@${process.env.AS_REF}\n ${process.env.AS_WORKFLOW} (${process.env.AS_COMMIT})\n by ${process.env.AS_AUTHOR}\n Status: ${{ needs.ci-test.result }}`, | ||
}] | ||
} | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} # required | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required | ||
MATRIX_CONTEXT: ${{ toJson(matrix) }} # required | ||
if: ${{ always() && github.actor != 'dependabot[bot]' }} | ||
|
||
dependabot-auto-merge: | ||
runs-on: ubuntu-latest | ||
needs: ci-test | ||
if: ${{ needs.ci-test.result == 'success' }} | ||
steps: | ||
- name: Automerge passing dependabot PR | ||
uses: ridedott/merge-me-action@v2 | ||
with: | ||
GITHUB_LOGIN: dependabot # For clarity only. dependabot is default. | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.