Skip to content

Commit 5b9d78b

Browse files
committed
fix: stabilize CI async tests and add stale issue cleanup
Install pytest-asyncio in the test workflow so asyncio-marked tests run correctly in GitHub Actions. Add a scheduled stale issue workflow that closes issues after 30 days of inactivity while exempting pinned and security labels.
1 parent da90e24 commit 5b9d78b

2 files changed

Lines changed: 27 additions & 1 deletion

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Close stale issues
2+
3+
on:
4+
schedule:
5+
- cron: "0 2 * * *"
6+
workflow_dispatch:
7+
8+
permissions:
9+
issues: write
10+
11+
jobs:
12+
stale:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Mark and close stale issues
16+
uses: actions/stale@v10
17+
with:
18+
stale-issue-message: "This issue has had no updates for 30 days and is now closed automatically. Comment here if you still need help and we can reopen it."
19+
close-issue-message: "Closed due to inactivity for 30 days."
20+
days-before-issue-stale: 30
21+
days-before-issue-close: 0
22+
stale-pr-message: ""
23+
close-pr-message: ""
24+
days-before-pr-stale: -1
25+
days-before-pr-close: -1
26+
exempt-issue-labels: "pinned,security"

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ jobs:
1616
with:
1717
python-version: '3.13'
1818
- name: Install test dependencies
19-
run: python -m pip install --upgrade pip && pip install pytest aiohttp
19+
run: python -m pip install --upgrade pip && pip install pytest pytest-asyncio aiohttp
2020
- name: Run tests
2121
run: pytest -q

0 commit comments

Comments
 (0)