From a4ad60883d0382e5ff53bd3573f0cc3c24299148 Mon Sep 17 00:00:00 2001 From: Moritz Date: Wed, 26 Nov 2025 08:45:58 +0100 Subject: [PATCH 1/2] split test workflows --- .../{tests.yaml => elaborate_tests.yaml} | 3 +- .github/workflows/quick_tests.yaml | 50 +++++++++++++++++++ 2 files changed, 52 insertions(+), 1 deletion(-) rename .github/workflows/{tests.yaml => elaborate_tests.yaml} (99%) create mode 100644 .github/workflows/quick_tests.yaml diff --git a/.github/workflows/tests.yaml b/.github/workflows/elaborate_tests.yaml similarity index 99% rename from .github/workflows/tests.yaml rename to .github/workflows/elaborate_tests.yaml index 135c8d96..80fa277b 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/elaborate_tests.yaml @@ -1,6 +1,7 @@ -name: Tests +name: Elaborate Tests on: pull_request: + types: [review_requested] schedule: - cron: '23 1 * * *' diff --git a/.github/workflows/quick_tests.yaml b/.github/workflows/quick_tests.yaml new file mode 100644 index 00000000..7db79bd5 --- /dev/null +++ b/.github/workflows/quick_tests.yaml @@ -0,0 +1,50 @@ +name: Quick Tests +on: + pull_request: + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${ + (github.event_name == 'pull_request' && github.event.pull_request.number || github.ref_name) + } + cancel-in-progress: true + +jobs: + pytest: + name: Tests on ubuntu-latest with Python ${{ matrix.python-version }} + runs-on: ubuntu-latest + + strategy: + matrix: + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] + + steps: + - uses: actions/checkout@v5 + - name: Set up Python + uses: actions/setup-python@v6 + with: + python-version: | + ${{ + matrix.python-version + }} + - name: Install dependencies + run: | + python -m venv venv_latest + source venv_latest/bin/activate + python -m pip install --upgrade pip + pip install . + - name: Install old autoray + if: matrix.python-version == '3.9' + run: | + source venv_latest/bin/activate + pip install autoray==0.7.2 + - name: Test with pytest + run: | + source venv_latest/bin/activate + pip install pytest + pytest tests/ + - name: clean + run: | + rm -rf venv_latest From e9f1acbdf238a7105085fa9bb0196648de4657cb Mon Sep 17 00:00:00 2001 From: Moritz Date: Wed, 26 Nov 2025 09:00:15 +0100 Subject: [PATCH 2/2] add stale workflow --- .github/workflows/stale.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 00000000..b9972ef3 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,20 @@ +name: 'Close stale issues and PRs' +on: + schedule: + - cron: '30 1 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v10 + with: + stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 1 year.' + stale-pr-message: 'This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 1 year.' + close-issue-message: 'This issue was closed because it has been stalled for 1 year with no activity.' + close-pr-message: 'This PR was closed because it has been stalled for 1 year with no activity.' + days-before-stale: 30 + days-before-close: 365 + exempt-issue-labels: 'bug,eternal' + exempt-all-issue-milestones: 'true' + exempt-all-issue-assignees: 'true'