-
Notifications
You must be signed in to change notification settings - Fork 231
CI: Harden GHA configuration #601
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" # Location of your workflow files | ||
schedule: | ||
interval: "weekly" # Options: daily, weekly, monthly |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
name: Docs | ||
permissions: | ||
contents: read | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this, or perhaps something else seems to have made the docs build hang forever? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Docs build fixed by #605 |
||
|
||
on: [push, pull_request] | ||
|
||
|
@@ -11,8 +13,10 @@ jobs: | |
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- name: Install Conda environment with Micromamba | ||
uses: mamba-org/setup-micromamba@v2 | ||
uses: mamba-org/setup-micromamba@b09ef9b599704322748535812ca03efb2625677b # v2 | ||
with: | ||
environment-file: dev-environment.yml | ||
- name: Install | ||
|
@@ -21,7 +25,7 @@ jobs: | |
run: make -C docs html | ||
- name: Publish | ||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | ||
uses: peaceiris/actions-gh-pages@v4 | ||
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./docs/_build/html | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
name: Tests | ||
permissions: | ||
contents: read | ||
|
||
on: | ||
push: | ||
|
@@ -20,9 +22,11 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Install Conda environment with Micromamba | ||
uses: mamba-org/setup-micromamba@v2 | ||
uses: mamba-org/setup-micromamba@b09ef9b599704322748535812ca03efb2625677b # v2 | ||
with: | ||
environment-file: dev-environment.yml | ||
|
||
|
@@ -64,9 +68,11 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Install Conda environment with Micromamba | ||
uses: mamba-org/setup-micromamba@v2 | ||
uses: mamba-org/setup-micromamba@b09ef9b599704322748535812ca03efb2625677b # v2 | ||
with: | ||
environment-file: dev-environment.yml | ||
create-args: >- | ||
|
@@ -134,7 +140,7 @@ jobs: | |
# https://github.com/pymmcore-plus/pymmcore-widgets/blob/5e233384e223ca00101ef4b741d3c525a5cff9c9/.github/workflows/cron.yml#L49 | ||
- name: Report Failures | ||
if: failure() && github.event_name == 'schedule' | ||
uses: JasonEtco/create-an-issue@v2 | ||
uses: JasonEtco/create-an-issue@1b14a70e4d8dc185e5cc76d3bec9eab20257b2c5 # v2 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This probably needs some kind of write permission? |
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
OS: ${{ matrix.os }} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on matplotlib/mpl-third-party#192 (comment), this is probably going to break the Publish step.