Skip to content

Commit 25fdf3a

Browse files
Merge remote-tracking branch 'refs/remotes/upstream/master' into fix/checkpoint-metadata
2 parents 53f20f0 + f1963a4 commit 25fdf3a

26 files changed

Lines changed: 1860 additions & 138 deletions

.github/workflows/CI.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
- 'master'
1414
paths:
1515
- '**'
16+
workflow_dispatch:
1617

1718
permissions:
1819
contents: write

.github/workflows/CI_Windows.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
- 'master'
1414
paths:
1515
- '**'
16+
workflow_dispatch:
1617

1718
jobs:
1819
test:

.github/workflows/CI_apptainer.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
- 'master'
1414
paths:
1515
- '**'
16+
workflow_dispatch:
1617

1718
jobs:
1819
test:

.github/workflows/CI_docker.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
- 'master'
1414
paths:
1515
- '**'
16+
workflow_dispatch:
1617

1718
jobs:
1819
test:

.github/workflows/CI_docker_large_nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
steps:
2828
- uses: actions/checkout@v6
2929
- name: Set up QEMU
30-
uses: docker/setup-qemu-action@v3
30+
uses: docker/setup-qemu-action@v4
3131
with:
3232
platforms: all
3333
- name: Build docker

.github/workflows/CI_mac.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
- 'master'
1414
paths:
1515
- '**'
16+
workflow_dispatch:
1617

1718
jobs:
1819
test:

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
branches: [ "master" ]
99
schedule:
1010
- cron: '28 17 * * 1'
11+
workflow_dispatch:
1112

1213
jobs:
1314
analyze:

.github/workflows/docker_deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
type=sha
5757
type=raw,value=latest,enable={{is_default_branch}}
5858
- name: Set up QEMU
59-
uses: docker/setup-qemu-action@v3
59+
uses: docker/setup-qemu-action@v4
6060
- name: Set up Docker Buildx
6161
uses: docker/setup-buildx-action@v3
6262
- name: Build and push

.github/workflows/pypi_deploy.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
name: Deploy PyPI
22
on:
3-
push:
4-
tags:
5-
- 'v*.*.*'
63
workflow_dispatch:
4+
inputs:
5+
publish_ref:
6+
description: Tag or ref to publish manually (for backfills, e.g. v1.5.10)
7+
required: true
8+
type: string
79

810
jobs:
911
pypi:
@@ -12,26 +14,29 @@ jobs:
1214
name: pypi
1315
url: https://pypi.org/p/pysr
1416
permissions:
17+
contents: read
1518
id-token: write
1619
steps:
17-
- name: "Checkout"
20+
- name: Checkout
1821
uses: actions/checkout@v6
19-
- name: "Set up Python"
22+
with:
23+
ref: ${{ inputs.publish_ref }}
24+
- name: Set up Python
2025
uses: actions/setup-python@v6
2126
with:
2227
python-version: 3.10.8
23-
- name: "Install building tools"
28+
- name: Install building tools
2429
run: pip install build
25-
- name: "Build package"
30+
- name: Build package
2631
run: python -m build
27-
- name: "Publish distribution 📦 to Test PyPI"
32+
- name: Publish distribution 📦 to Test PyPI
2833
uses: pypa/gh-action-pypi-publish@release/v1
2934
with:
3035
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
3136
repository-url: https://test.pypi.org/legacy/
3237
skip-existing: true
3338
verbose: true
34-
- name: "Publish distribution 📦 to PyPI"
39+
- name: Publish distribution 📦 to PyPI
3540
uses: pypa/gh-action-pypi-publish@release/v1
3641
with:
3742
password: ${{ secrets.PYPI_API_TOKEN }}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: release-please
2+
3+
on:
4+
push:
5+
branches: [master]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
issues: write
12+
13+
jobs:
14+
release-please:
15+
runs-on: ubuntu-latest
16+
outputs:
17+
release_created: ${{ steps.release.outputs.release_created }}
18+
tag_name: ${{ steps.release.outputs.tag_name }}
19+
sha: ${{ steps.release.outputs.sha }}
20+
steps:
21+
- id: release
22+
uses: googleapis/release-please-action@v4
23+
with:
24+
token: ${{ secrets.GITHUB_TOKEN }}
25+
target-branch: master
26+
config-file: release-please-config.json
27+
manifest-file: .release-please-manifest.json
28+
29+
publish-pypi:
30+
needs: release-please
31+
if: ${{ needs.release-please.outputs.release_created == 'true' }}
32+
runs-on: ubuntu-latest
33+
environment:
34+
name: pypi
35+
url: https://pypi.org/p/pysr
36+
permissions:
37+
contents: read
38+
id-token: write
39+
steps:
40+
- name: Checkout released revision
41+
uses: actions/checkout@v6
42+
with:
43+
ref: ${{ needs.release-please.outputs.sha }}
44+
- name: Set up Python
45+
uses: actions/setup-python@v6
46+
with:
47+
python-version: 3.10.8
48+
- name: Install building tools
49+
run: pip install build
50+
- name: Build package
51+
run: python -m build
52+
- name: Publish distribution 📦 to Test PyPI
53+
uses: pypa/gh-action-pypi-publish@release/v1
54+
with:
55+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
56+
repository-url: https://test.pypi.org/legacy/
57+
skip-existing: true
58+
verbose: true
59+
- name: Publish distribution 📦 to PyPI
60+
uses: pypa/gh-action-pypi-publish@release/v1
61+
with:
62+
password: ${{ secrets.PYPI_API_TOKEN }}
63+
verbose: true

0 commit comments

Comments
 (0)