Skip to content

Commit 2b199f3

Browse files
up to date workflows
1 parent 3087df5 commit 2b199f3

27 files changed

+1331
-113
lines changed

.codecov.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@ github_checks:
2323
# ignore files
2424
ignore:
2525
- ".github/"
26+
- "build_tools/"
2627
- "docs/"
28+
- "examples/"
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: 🐛 Bug report
2+
description: Report a bug currently impacting tsml-eval.
3+
title: "[BUG] "
4+
labels: ["bug"]
5+
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: >
10+
#### You can see if he bug has already been addressed by searching
11+
through the open and closed [issues](https://github.com/time-series-machine-learning/tsml-eval/issues?q=is%3Aissue).
12+
- type: textarea
13+
attributes:
14+
label: Describe the bug
15+
description: >
16+
A clear and concise description of what the bug is.
17+
validations:
18+
required: true
19+
- type: textarea
20+
attributes:
21+
label: Steps/Code to reproduce the bug
22+
description: |
23+
Please include a [minimal reproducible example](https://stackoverflow.com/help/mcve) so users can reproduce the error when running it. Be as succinct as possible, and do not depend on external data files.
24+
25+
If the code is too long, feel free to put it in a public [gist](https://gist.github.com) and link it in the issue.
26+
placeholder: |
27+
```python
28+
Your code here. placing your code between three backticks will format it like the above example.
29+
```
30+
- type: textarea
31+
attributes:
32+
label: Expected results
33+
description: >
34+
Please provide a clear and concise description of the expected results or paste the correct output if available.
35+
placeholder: >
36+
For example: No error is thrown, or y_name1 == y_name2.
37+
validations:
38+
required: true
39+
- type: textarea
40+
attributes:
41+
label: Actual results
42+
description: |
43+
Please provide a clear and concise description of the actual seen results or paste the incorrect output if available.
44+
45+
If you observe an error, please paste the error message including the full traceback of the exception. For instance the code example above raises the following exception:
46+
placeholder: |
47+
```python-traceback
48+
Place traceback error here if applicable. If your issue has no traceback, please describe the observed output without formatting.
49+
```
50+
validations:
51+
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
contact_links:
2+
- name: "\u2709\uFE0F Email"
3+
url: https://mailxto.com/gj5bni0yvt
4+
about: Send an email to the TSML developers at M.B.Middlehurst@gmail.com. Checked periodically.
5+
- name: "\U0001F310 TSC Webpage"
6+
url: https://www.timeseriesclassification.com/
7+
about: The TSML research group and TSC dataset archive website.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: 📖 Documentation improvement
2+
description: Create a report to help us improve the tsml-eval documentation.
3+
title: "[DOC] "
4+
labels: ["documentation"]
5+
6+
body:
7+
- type: textarea
8+
attributes:
9+
label: Describe the issue linked to the documentation
10+
description: >
11+
Tell us about the confusion introduced in the documentation.
12+
validations:
13+
required: true
14+
- type: textarea
15+
attributes:
16+
label: Suggest a potential alternative/fix
17+
description: >
18+
Tell us how we could improve the documentation in this regard.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: ✨ Feature request
2+
description: Suggest a new algorithm or idea for tsml-eval.
3+
title: "[ENH] "
4+
labels: ["enhancement"]
5+
6+
body:
7+
- type: textarea
8+
attributes:
9+
label: Describe the feature or idea you want to propose
10+
description: >
11+
Is your feature request related to a problem? Please describe. If relevant, you
12+
should link to a paper or other reference.
13+
validations:
14+
required: true
15+
- type: textarea
16+
attributes:
17+
label: Describe your proposed solution
18+
description: >
19+
A clear and concise description of what you want to happen, ideally taking into
20+
consideration the existing package design, classes and methods.
21+
validations:
22+
required: true
23+
- type: textarea
24+
attributes:
25+
label: Other comments and alternatives considered
26+
description: >
27+
Add any other context or comments, or alternative solutions relating to the
28+
problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: 🔧 Other issue
2+
description: Other issue categories do not fit.
3+
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: >
8+
If the issue is maintenance related (i.e. CI), please start the title with [MNT]
9+
and add the maintenance tag.
10+
- type: textarea
11+
attributes:
12+
label: Describe the issue
13+
validations:
14+
required: true
15+
- type: textarea
16+
attributes:
17+
label: Suggest a potential alternative/fix.
18+
- type: textarea
19+
attributes:
20+
label: Additional context or comments

.github/ISSUE_TEMPLATE/sweep.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: 🤖 Sweep AI
2+
description: Write a prompt for the Sweep AI bot to create a pull request from.
3+
title: 'Sweep: '
4+
labels: ["sweep"]
5+
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: |
10+
#### See the [Sweep AI docs](https://docs.sweep.dev/) for more information.
11+
12+
For a few line fixes, you can start your PR with `Sweep (fast): `. Sweep will use GPT-3.5 to quickly create a PR for very small changes
13+
14+
For larger bugs, features, refactors, and tests, you can start your PR with `Sweep (slow): `. Sweep will perform a deeper search and more self-reviews but will take longer.
15+
16+
To see examples of sweep being used for tsml-eval, check out the [Sweep issues](https://github.com/time-series-machine-learning/tsml-eval/issues?q=is%3Aissue+label%3Asweep+).
17+
- type: textarea
18+
attributes:
19+
label: Details
20+
description: >
21+
Tell Sweep where and what to edit and provide enough context for a new developer
22+
to the codebase.
23+
placeholder: |
24+
Bugs: The bug might be in ... file. Here are the logs: ...
25+
Features: the new endpoint should use the ... class from ... file because it contains ... logic.
26+
Refactors: We are migrating this function to ... version because ...
27+
validations:
28+
required: true
29+
- type: textarea
30+
attributes:
31+
label: Files to change
32+
description: Optional but can improve Sweep
33+
placeholder: |
34+
src/main.py
35+
tests/test.py
36+
render: Shell

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!--
2+
Thanks for contributing with a pull request!
3+
Feel free to delete sections the template if they do not apply to the PR.
4+
-->
5+
6+
#### Reference Issues/PRs
7+
8+
<!--
9+
i.e. Fixes #1234 or See #3456.
10+
-->
11+
12+
#### What does this implement/fix? Explain your changes
13+
14+
<!--
15+
A clear and concise description of what you have implemented.
16+
-->
17+
18+
#### Any other comments?
19+
20+
<!--
21+
Please be aware that we are a team of volunteers so patience is necessary.
22+
-->

.github/dependabot.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
version: 2
2+
updates:
3+
# update GitHub actions versions
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"
8+
time: "01:00"
9+
commit-message:
10+
prefix: "[MNT] "
11+
labels:
12+
- "maintenance"
13+
- "dependencies"
14+
groups:
15+
github-actions:
16+
patterns:
17+
- "*"
18+
# update Python dependencies
19+
- package-ecosystem: "pip"
20+
directory: "/"
21+
schedule:
22+
interval: "weekly"
23+
time: "01:00"
24+
commit-message:
25+
prefix: "[MNT] "
26+
labels:
27+
- "maintenance"
28+
- "dependencies"
29+
groups:
30+
python-packages:
31+
patterns:
32+
- "*"

.github/workflows/pr_opened.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: PR Opened
2+
on:
3+
pull_request_target:
4+
types: [opened]
5+
6+
permissions:
7+
contents: read
8+
pull-requests: write
9+
issues: write
10+
11+
jobs:
12+
# based on the scikit-learn 1.3.1 PR labelers
13+
labeler:
14+
runs-on: ubuntu-22.04
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
sparse-checkout: build_tools
20+
21+
- uses: actions/setup-python@v5
22+
with:
23+
python-version: "3.10"
24+
25+
- name: Install PyGithub
26+
run: pip install -Uq PyGithub
27+
28+
- uses: actions/create-github-app-token@v1
29+
id: app-token
30+
with:
31+
app-id: ${{ vars.PR_APP_ID }}
32+
private-key: ${{ secrets.PR_APP_KEY }}
33+
34+
- name: Label pull request
35+
id: label-pr
36+
run: python build_tools/pr_labeler.py ${{ steps.app-token.outputs.token }}
37+
env:
38+
CONTEXT_GITHUB: ${{ toJson(github) }}
39+
40+
- name: Write pull request comment
41+
run: python build_tools/pr_open_commenter.py ${{ steps.app-token.outputs.token }} ${{ steps.label-pr.outputs.title-labels }} ${{ steps.label-pr.outputs.title-labels-new }} ${{ steps.label-pr.outputs.content-labels }} ${{ steps.label-pr.outputs.content-labels-status }}
42+
env:
43+
CONTEXT_GITHUB: ${{ toJson(github) }}

0 commit comments

Comments
 (0)