Skip to content
Merged
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
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Tests
name: Elaborate Tests
on:
pull_request:
types: [review_requested]
schedule:
- cron: '23 1 * * *'

Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/quick_tests.yaml
Original file line number Diff line number Diff line change
@@ -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
20 changes: 20 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -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'