Skip to content

[MNT] Workflow maintenance #2919

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/cpu_all_extras/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ runs:
using: "composite"
steps:
- name: Install CPU TensorFlow
if: ${{ runner.os == 'Linux' && inputs.python_version != '3.13.5' }}
if: ${{ runner.os == 'Linux' && inputs.python_version != '3.13' }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@
pr = repo.get_pull(pr_number)
label_name = context_dict["event"]["label"]["name"]

if label_name == "AI Spam":
comment_body = (
"This pull request has been flagged with the **AI Spam** label.\n\n"
"This PR is being closed."
if label_name == "AI pull request":
pr.create_issue_comment(
"This pull request has been flagged with the **AI pull request** label as it"
"is suspected to be comprised of mostly AI code.\n\n"
"`aeon` does not accept pull requests that are primarily generated by AI "
"tools.\n\n"
"If you believe this label has been applied in error, contact us on Slack or"
"GitHub."
)
pr.create_issue_comment(comment_body)
pr.edit(state="closed")
2 changes: 1 addition & 1 deletion .github/workflows/issue_assigned.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Issue Assigned
name: Issue assigned

on:
issues:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issue_comment_edited.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Issue Comment Edited
name: Issue comment edited

on:
issue_comment:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issue_comment_posted.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Issue Comment Posted
name: Issue comment posted

on:
issue_comment:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/periodic_tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Periodic Tests
name: Periodic tests

on:
schedule:
Expand Down Expand Up @@ -163,7 +163,7 @@ jobs:
fail-fast: false
matrix:
os: [ ubuntu-24.04, macOS-14, windows-2022 ]
python-version: [ "3.10", "3.11", "3.12", "3.13.5" ]
python-version: [ "3.10", "3.11", "3.12", "3.13" ]

steps:
- name: Checkout
Expand Down Expand Up @@ -239,7 +239,7 @@ jobs:
run: python -m pip list

- name: Run tests
run: python -m pytest -n logical --doctest-only
run: python -m pytest -n logical --doctest-only --doctest-continue-on-failure

multithreaded-estimators:
runs-on: ubuntu-24.04
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: AI Spam Detection On PR
name: Pull request labelled

on:
pull_request:
Expand All @@ -9,8 +9,8 @@ concurrency:
cancel-in-progress: true

jobs:
ai-spam-present:
if: ${{ github.event.label.name == 'AI Spam' }}
ai-pull-request:
if: ${{ github.event.label.name == 'AI pull request' }}
runs-on: ubuntu-24.04

steps:
Expand All @@ -26,15 +26,15 @@ jobs:
with:
sparse-checkout: .github/utilities

- name: Setup Python 3.11
- name: Setup Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.12"

- name: Install PyGithub
run: pip install -Uq PyGithub

- name: Process AI Spam
- name: Process AI label
id: handle_spam
run: python .github/utilities/ai_spam.py
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr_opened.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PR Opened
name: PR opened

on:
pull_request_target:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr_pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
fail-fast: false
matrix:
os: [ ubuntu-24.04, macOS-14, windows-2022 ]
python-version: [ "3.10", "3.11", "3.12", "3.13.5" ]
python-version: [ "3.10", "3.11", "3.12", "3.13" ]
# skip python versions unless the PR has the 'full pytest actions' label
pr-testing:
- ${{ (github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'full pytest actions')) }}
Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
run: python -m pip list

- name: Run tests
run: python -m pytest -n logical --doctest-only
run: python -m pytest -n logical --doctest-only --doctest-continue-on-failure

multithreaded-estimators:
runs-on: ubuntu-24.04
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr_typecheck.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PR Typecheck
name: PR typecheck

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
fail-fast: false
matrix:
os: [ ubuntu-24.04, macOS-14, windows-2022 ]
python-version: [ "3.10", "3.11", "3.12", "3.13.5" ]
python-version: [ "3.10", "3.11", "3.12", "3.13" ]

steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update_contributors.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Update Contributors
name: Update contributors

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/weekly_github_maintenance.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Weekly GitHub Maintenance
name: Weekly GitHub maintenance

on:
schedule:
Expand Down
Loading