Skip to content

Commit 3f43e53

Browse files
committed
make release-tag: Merge branch 'main' into stable
2 parents 49ba3c5 + c910f4e commit 3f43e53

File tree

21 files changed

+288
-79
lines changed

21 files changed

+288
-79
lines changed

.github/workflows/dependency_checker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v4
11-
- name: Set up Python 3.9
11+
- name: Set up latest Python
1212
uses: actions/setup-python@v5
1313
with:
14-
python-version: 3.9
14+
python-version-file: 'pyproject.toml'
1515
- name: Install dependencies
1616
run: |
1717
python -m pip install .[dev]

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13-
- name: Set up Python 3.9
13+
- name: Set up latest Python
1414
uses: actions/setup-python@v5
1515
with:
16-
python-version: 3.9
16+
python-version-file: 'pyproject.toml'
1717
- name: Build
1818
run: |
1919
sudo apt-get install pandoc

.github/workflows/end_to_end.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
- os: macos-latest
1919
python-version: '3.13'
2020
steps:
21-
- uses: actions/checkout@v1
21+
- uses: actions/checkout@v4
2222
- name: Set up Python ${{ matrix.python-version }}
23-
uses: actions/setup-python@v2
23+
uses: actions/setup-python@v5
2424
with:
2525
python-version: ${{ matrix.python-version }}
2626
- name: Install dependencies

.github/workflows/lint.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,19 @@ on:
55
pull_request:
66
types: [opened, reopened]
77

8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
812
jobs:
913
lint:
1014
runs-on: ubuntu-latest
1115
steps:
12-
- uses: actions/checkout@v1
13-
- name: Set up Python 3.9
14-
uses: actions/setup-python@v2
16+
- uses: actions/checkout@v4
17+
- name: Set up latest Python
18+
uses: actions/setup-python@v5
1519
with:
16-
python-version: 3.9
20+
python-version-file: 'pyproject.toml'
1721
- name: Install dependencies
1822
run: |
1923
python -m pip install --upgrade pip

.github/workflows/minimum.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
pull_request:
66
types: [opened, reopened]
77

8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
812
jobs:
913
minimum:
1014
runs-on: ${{ matrix.os }}
@@ -18,9 +22,9 @@ jobs:
1822
- os: macos-latest
1923
python-version: '3.13'
2024
steps:
21-
- uses: actions/checkout@v1
25+
- uses: actions/checkout@v4
2226
- name: Set up Python ${{ matrix.python-version }}
23-
uses: actions/setup-python@v2
27+
uses: actions/setup-python@v5
2428
with:
2529
python-version: ${{ matrix.python-version }}
2630
- name: Install dependencies

.github/workflows/numerical.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
pull_request:
66
types: [opened, reopened]
77

8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
812
jobs:
913
unit:
1014
runs-on: ${{ matrix.os }}
@@ -18,9 +22,9 @@ jobs:
1822
- os: macos-latest
1923
python-version: '3.13'
2024
steps:
21-
- uses: actions/checkout@v1
25+
- uses: actions/checkout@v4
2226
- name: Set up Python ${{ matrix.python-version }}
23-
uses: actions/setup-python@v2
27+
uses: actions/setup-python@v5
2428
with:
2529
python-version: ${{ matrix.python-version }}
2630
- name: Install dependencies

.github/workflows/prepare_release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- uses: actions/checkout@v4
22-
- name: Set up Python 3.10
22+
- name: Set up latest Python
2323
uses: actions/setup-python@v5
2424
with:
25-
python-version: '3.10'
25+
python-version-file: 'pyproject.toml'
2626

2727
- name: Install dependencies
2828
run: |

.github/workflows/readme.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
pull_request:
66
types: [opened, reopened]
77

8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
812
jobs:
913
readme:
1014
runs-on: ${{ matrix.os }}
@@ -13,9 +17,9 @@ jobs:
1317
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
1418
os: [ubuntu-latest, macos-latest]
1519
steps:
16-
- uses: actions/checkout@v1
20+
- uses: actions/checkout@v4
1721
- name: Set up Python ${{ matrix.python-version }}
18-
uses: actions/setup-python@v2
22+
uses: actions/setup-python@v5
1923
with:
2024
python-version: ${{ matrix.python-version }}
2125
- name: Install dependencies

.github/workflows/release.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
workflow_dispatch:
8+
inputs:
9+
candidate:
10+
description: 'Release candidate.'
11+
required: true
12+
type: boolean
13+
default: true
14+
test_pypi:
15+
description: 'Test PyPi.'
16+
type: boolean
17+
default: false
18+
19+
jobs:
20+
release:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
with:
25+
ref: ${{ inputs.candidate && 'main' || 'stable' }}
26+
27+
- name: Set up latest Python
28+
uses: actions/setup-python@v5
29+
with:
30+
python-version-file: 'pyproject.toml'
31+
32+
- name: Install dependencies
33+
run: |
34+
python -m pip install --upgrade pip
35+
python -m pip install .[dev]
36+
37+
- name: Create wheel
38+
run: |
39+
make dist
40+
41+
- name: Publish a Python distribution to PyPI
42+
uses: pypa/gh-action-pypi-publish@release/v1
43+
with:
44+
password: ${{ inputs.test_pypi && secrets.TEST_PYPI_API_TOKEN || secrets.PYPI_API_TOKEN }}
45+
repository-url: ${{ inputs.test_pypi && 'https://test.pypi.org/legacy/' || 'https://upload.pypi.org/legacy/' }}
46+
47+
- name: Bump version to next candidate
48+
if: ${{ inputs.candidate && !inputs.test_pypi }}
49+
run: |
50+
git config user.name "github-actions[bot]"
51+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
52+
make bumpversion-candidate
53+
make git-push

.github/workflows/tutorials.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,20 @@ on:
55
pull_request:
66
types: [opened, reopened]
77

8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
812
jobs:
913
tutorials:
1014
runs-on: ubuntu-latest
1115
strategy:
1216
matrix:
1317
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
1418
steps:
15-
- uses: actions/checkout@v1
19+
- uses: actions/checkout@v4
1620
- name: Set up Python ${{ matrix.python-version }}
17-
uses: actions/setup-python@v2
21+
uses: actions/setup-python@v5
1822
with:
1923
python-version: ${{ matrix.python-version }}
2024
- name: Install package and dependencies

0 commit comments

Comments
 (0)