-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workflow and config updates from aeon
- Loading branch information
1 parent
5311e49
commit b739b05
Showing
8 changed files
with
111 additions
and
13 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,34 @@ | ||
version: 2 | ||
updates: | ||
# update GitHub actions versions | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: weekly | ||
time: "01:00" | ||
commit-message: | ||
prefix: "[MNT]" | ||
labels: | ||
- "maintenance" | ||
- "no changelog" | ||
groups: | ||
github-actions: | ||
patterns: | ||
- "*" | ||
|
||
# update Python dependencies | ||
- package-ecosystem: pip | ||
directory: / | ||
schedule: | ||
interval: weekly | ||
time: "01:00" | ||
commit-message: | ||
prefix: "[MNT]" | ||
labels: | ||
- "maintenance" | ||
- "full pytest actions" | ||
- "no changelog" | ||
groups: | ||
python-packages: | ||
patterns: | ||
- "*" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,10 @@ on: | |
pull_request: | ||
branches: | ||
- main | ||
schedule: | ||
# every day at 1:30 AM UTC | ||
- cron: "30 1 * * *" | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | ||
|
@@ -26,9 +30,18 @@ jobs: | |
- uses: tj-actions/[email protected] | ||
id: changed-files | ||
|
||
- uses: pre-commit/[email protected] | ||
- if: ${{ github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'full pre-commit') }} | ||
name: Full pre-commit | ||
uses: pre-commit/[email protected] | ||
with: | ||
extra_args: --all-files | ||
- if: ${{ github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'full pre-commit') }} | ||
name: Local pre-commit | ||
uses: pre-commit/[email protected] | ||
with: | ||
extra_args: --files ${{ steps.changed-files.outputs.all_changed_files }} | ||
|
||
- uses: pre-commit-ci/[email protected] | ||
if: always() | ||
- uses: marocchino/validate-dependabot@v2 | ||
|
||
- if: ${{ failure() && github.event_name == 'pull_request' && github.event.pull_request.draft == false }} | ||
uses: pre-commit-ci/[email protected] |
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,37 @@ | ||
name: Update pre-commit Hooks | ||
|
||
on: | ||
schedule: | ||
# every Monday at 12:30 AM UTC | ||
- cron: "30 0 * * 1" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
pre-commit-auto-update: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
|
||
- uses: browniebroke/[email protected] | ||
|
||
- if: always() | ||
uses: actions/create-github-app-token@v1 | ||
id: app-token | ||
with: | ||
app-id: ${{ vars.PR_APP_ID }} | ||
private-key: ${{ secrets.PR_APP_KEY }} | ||
|
||
- if: always() | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
token: ${{ steps.app-token.outputs.token }} | ||
commit-message: "Automated `pre-commit` hook update" | ||
branch: pre-commit-hooks-update | ||
title: "[MNT] Automated `pre-commit` hook update" | ||
body: "Automated weekly update to `.pre-commit-config.yaml` hook versions." | ||
labels: maintenance, full pre-commit, no changelog |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,11 @@ authors = [ | |
{name = "Matthew Middlehurst", email = "[email protected]"}, | ||
{name = "Tony Bagnall", email = "[email protected]"}, | ||
] | ||
maintainers = [ | ||
{name = "Matthew Middlehurst", email = "[email protected]"}, | ||
{name = "Tony Bagnall", email = "[email protected]"}, | ||
] | ||
readme = "README.md" | ||
requires-python = ">=3.8,<3.12" | ||
keywords = [ | ||
"data-science", | ||
"machine-learning", | ||
|
@@ -36,6 +39,7 @@ classifiers = [ | |
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
] | ||
requires-python = ">=3.8,<3.12" | ||
dependencies = [ | ||
"aeon>=0.4.0,<0.5.0", | ||
"scikit-learn>=1.0.2,<=1.2.2", | ||
|
@@ -58,6 +62,8 @@ unstable_extras = [ | |
deep_learning = [ | ||
"aeon[dl]", | ||
"torch>=1.13.1", | ||
# temp | ||
"pycatch22<=0.4.3", | ||
] | ||
dev = [ | ||
"pre-commit", | ||
|
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