Skip to content

Commit 93efd31

Browse files
authored
maintenance for CI files (#42)
* update action versions * don't explicitly upgrade setuptools and wheel * add dependabot configuration * only run the upstream-dev CI on schedule or when requested
1 parent 3b03bc5 commit 93efd31

File tree

6 files changed

+36
-4
lines changed

6 files changed

+36
-4
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: 'github-actions'
4+
directory: '/'
5+
schedule:
6+
# Check for updates once a week
7+
interval: 'weekly'

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
pip-py${{ matrix.python-version }}
3535
3636
- name: upgrade pip
37-
run: python -m pip install --upgrade pip setuptools wheel
37+
run: python -m pip install --upgrade pip
3838

3939
- name: install sphinx
4040
run: |

.github/workflows/linting.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ jobs:
2222
key: pip-py3.8
2323
restore-keys: |
2424
pip-
25-
- uses: pre-commit/[email protected].0
25+
- uses: pre-commit/[email protected].3

.github/workflows/nightly.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,34 @@ on:
99
- cron: '0 0 * * *'
1010

1111
jobs:
12+
detect-ci-trigger:
13+
name: detect upstream-dev ci trigger
14+
runs-on: ubuntu-latest
15+
if: |
16+
github.repository == 'xarray-contrib/sphinx-autosummary-accessors'
17+
&& (github.event_name == 'push' || github.event_name == 'pull_request')
18+
outputs:
19+
triggered: ${{ steps.detect-trigger.outputs.trigger-found }}
20+
steps:
21+
- uses: actions/checkout@v2
22+
with:
23+
fetch-depth: 2
24+
- uses: xarray-contrib/[email protected]
25+
id: detect-trigger
26+
with:
27+
keyword: "[test-upstream]"
28+
1229
upstream-dev:
1330
name: upstream-dev
1431
runs-on: ubuntu-latest
32+
needs: detect-ci-trigger
33+
34+
if: |
35+
always()
36+
&& (
37+
github.event_name == 'schedule'
38+
|| needs.detect-ci-trigger.outputs.triggered == 'true'
39+
)
1540
1641
strategy:
1742
fail-fast: false

.github/workflows/pre-commit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: version info
3131
run: python -m pip list
3232
- name: autoupdate
33-
uses: technote-space/create-pr-action@837dbe469b39f08d416889369a52e2a993625c84
33+
uses: technote-space/create-pr-action@bfd4392c80dbeb54e0bacbcf4750540aecae6ed4
3434
with:
3535
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3636
EXECUTE_COMMANDS: |

.github/workflows/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
run: |
2525
twine check dist/*
2626
- name: Publish to PyPI
27-
uses: pypa/gh-action-pypi-publish@54b39fb9371c0b3a6f9f14bb8a67394defc7a806
27+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
2828
with:
2929
user: __token__
3030
password: ${{ secrets.pypi_token }}

0 commit comments

Comments
 (0)