From 329f050e233bd17cd3d85415aba0128fec06b0da Mon Sep 17 00:00:00 2001 From: MatthewMiddlehurst Date: Wed, 25 Jun 2025 15:53:28 +0100 Subject: [PATCH 1/3] keep running doctests on fail --- .github/workflows/periodic_tests.yml | 2 +- .github/workflows/pr_pytest.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/periodic_tests.yml b/.github/workflows/periodic_tests.yml index 46d99bc94a..f98bf08ca4 100644 --- a/.github/workflows/periodic_tests.yml +++ b/.github/workflows/periodic_tests.yml @@ -240,7 +240,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 codecov: runs-on: ubuntu-24.04 diff --git a/.github/workflows/pr_pytest.yml b/.github/workflows/pr_pytest.yml index 69323e47c5..bae138b238 100644 --- a/.github/workflows/pr_pytest.yml +++ b/.github/workflows/pr_pytest.yml @@ -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 codecov: From 57ad5c21da38baf4e8d946b749d1270bfc27629b Mon Sep 17 00:00:00 2001 From: MatthewMiddlehurst Date: Wed, 25 Jun 2025 22:08:17 +0100 Subject: [PATCH 2/3] renames --- .../utilities/{ai_spam.py => ai_pull_request.py} | 13 ++++++++----- .github/workflows/issue_assigned.yml | 2 +- .github/workflows/issue_comment_edited.yml | 2 +- .github/workflows/issue_comment_posted.yml | 2 +- .github/workflows/periodic_tests.yml | 2 +- .github/workflows/{ai_spam.yml => pr_labelled.yml} | 12 ++++++------ .github/workflows/pr_opened.yml | 2 +- .github/workflows/pr_typecheck.yml | 2 +- .github/workflows/update_contributors.yml | 2 +- .github/workflows/weekly_github_maintenance.yml | 2 +- 10 files changed, 22 insertions(+), 19 deletions(-) rename .github/utilities/{ai_spam.py => ai_pull_request.py} (55%) rename .github/workflows/{ai_spam.yml => pr_labelled.yml} (80%) diff --git a/.github/utilities/ai_spam.py b/.github/utilities/ai_pull_request.py similarity index 55% rename from .github/utilities/ai_spam.py rename to .github/utilities/ai_pull_request.py index 0113aaad08..d044c81b57 100644 --- a/.github/utilities/ai_spam.py +++ b/.github/utilities/ai_pull_request.py @@ -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") diff --git a/.github/workflows/issue_assigned.yml b/.github/workflows/issue_assigned.yml index c238c6c195..0d664771a0 100644 --- a/.github/workflows/issue_assigned.yml +++ b/.github/workflows/issue_assigned.yml @@ -1,4 +1,4 @@ -name: Issue Assigned +name: Issue assigned on: issues: diff --git a/.github/workflows/issue_comment_edited.yml b/.github/workflows/issue_comment_edited.yml index fadf0c1629..596224b049 100644 --- a/.github/workflows/issue_comment_edited.yml +++ b/.github/workflows/issue_comment_edited.yml @@ -1,4 +1,4 @@ -name: Issue Comment Edited +name: Issue comment edited on: issue_comment: diff --git a/.github/workflows/issue_comment_posted.yml b/.github/workflows/issue_comment_posted.yml index df23c18261..dc56174027 100644 --- a/.github/workflows/issue_comment_posted.yml +++ b/.github/workflows/issue_comment_posted.yml @@ -1,4 +1,4 @@ -name: Issue Comment Posted +name: Issue comment posted on: issue_comment: diff --git a/.github/workflows/periodic_tests.yml b/.github/workflows/periodic_tests.yml index f98bf08ca4..7851fad9d2 100644 --- a/.github/workflows/periodic_tests.yml +++ b/.github/workflows/periodic_tests.yml @@ -1,4 +1,4 @@ -name: Periodic Tests +name: Periodic tests on: schedule: diff --git a/.github/workflows/ai_spam.yml b/.github/workflows/pr_labelled.yml similarity index 80% rename from .github/workflows/ai_spam.yml rename to .github/workflows/pr_labelled.yml index f09a1cff2d..39ffb6f2f5 100644 --- a/.github/workflows/ai_spam.yml +++ b/.github/workflows/pr_labelled.yml @@ -1,4 +1,4 @@ -name: AI Spam Detection On PR +name: Pull request labelled on: pull_request: @@ -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: @@ -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: diff --git a/.github/workflows/pr_opened.yml b/.github/workflows/pr_opened.yml index c500844d11..c4cb93ee3b 100644 --- a/.github/workflows/pr_opened.yml +++ b/.github/workflows/pr_opened.yml @@ -1,4 +1,4 @@ -name: PR Opened +name: PR opened on: pull_request_target: diff --git a/.github/workflows/pr_typecheck.yml b/.github/workflows/pr_typecheck.yml index 9c93884feb..22abee9bed 100644 --- a/.github/workflows/pr_typecheck.yml +++ b/.github/workflows/pr_typecheck.yml @@ -1,4 +1,4 @@ -name: PR Typecheck +name: PR typecheck on: push: diff --git a/.github/workflows/update_contributors.yml b/.github/workflows/update_contributors.yml index 5b69ccb12f..641a541166 100644 --- a/.github/workflows/update_contributors.yml +++ b/.github/workflows/update_contributors.yml @@ -1,4 +1,4 @@ -name: Update Contributors +name: Update contributors on: push: diff --git a/.github/workflows/weekly_github_maintenance.yml b/.github/workflows/weekly_github_maintenance.yml index 58c6d65a2c..29daf42716 100644 --- a/.github/workflows/weekly_github_maintenance.yml +++ b/.github/workflows/weekly_github_maintenance.yml @@ -1,4 +1,4 @@ -name: Weekly GitHub Maintenance +name: Weekly GitHub maintenance on: schedule: From 609207afad94463ee5468beb404183360ee1ce12 Mon Sep 17 00:00:00 2001 From: MatthewMiddlehurst Date: Thu, 26 Jun 2025 21:05:15 +0100 Subject: [PATCH 3/3] remove 3.13.5 --- .github/actions/cpu_all_extras/action.yml | 2 +- .github/workflows/periodic_tests.yml | 2 +- .github/workflows/pr_pytest.yml | 2 +- .github/workflows/release.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/actions/cpu_all_extras/action.yml b/.github/actions/cpu_all_extras/action.yml index dd772a0421..91fab623aa 100644 --- a/.github/actions/cpu_all_extras/action.yml +++ b/.github/actions/cpu_all_extras/action.yml @@ -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 diff --git a/.github/workflows/periodic_tests.yml b/.github/workflows/periodic_tests.yml index 7851fad9d2..f089c5e0a1 100644 --- a/.github/workflows/periodic_tests.yml +++ b/.github/workflows/periodic_tests.yml @@ -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 diff --git a/.github/workflows/pr_pytest.yml b/.github/workflows/pr_pytest.yml index bae138b238..11eeedd9c4 100644 --- a/.github/workflows/pr_pytest.yml +++ b/.github/workflows/pr_pytest.yml @@ -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')) }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c622d9dea8..17784e7dbc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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