Skip to content
Closed
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
40 changes: 20 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
name: ruff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: pip
Expand All @@ -31,8 +31,8 @@ jobs:
name: mypy --strict
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: pip
Expand All @@ -43,8 +43,8 @@ jobs:
name: unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: pip
Expand Down Expand Up @@ -76,8 +76,8 @@ jobs:
# else's luck; the wide random search is the nightly job's problem.
HYPOTHESIS_PROFILE: ci
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: pip
Expand All @@ -94,7 +94,7 @@ jobs:
# gives you no way to run it again.
- name: Keep the failing counterexample
if: failure()
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: hypothesis-examples
path: .hypothesis/
Expand Down Expand Up @@ -122,8 +122,8 @@ jobs:
ENVIRONMENT: test
BITCOIN_NETWORK: regtest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: pip
Expand All @@ -148,8 +148,8 @@ jobs:
name: published contracts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: pip
Expand Down Expand Up @@ -178,7 +178,7 @@ jobs:
# turns a green build into an unfalsifiable claim.
image: semgrep/semgrep:1.172.0
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v7
# `p/python` is the registry's general Python suite; `.semgrep/` holds the
# architecture rules specific to this codebase. `--error` is what makes a
# finding fail the build rather than decorate a log nobody opens.
Expand All @@ -188,7 +188,7 @@ jobs:
name: gitleaks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v7
with:
# Scan the history, not just the tip: a key removed in a later commit
# is still a leaked key.
Expand All @@ -202,8 +202,8 @@ jobs:
name: BTCPay compatibility
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: pip
Expand All @@ -217,10 +217,10 @@ jobs:
name: docker build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: docker/setup-buildx-action@v3
- uses: actions/checkout@v7
- uses: docker/setup-buildx-action@v4
- name: Build the API image
uses: docker/build-push-action@v6
uses: docker/build-push-action@v7
with:
context: .
push: false
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@ jobs:
outputs:
digest: ${{ steps.build.outputs.digest }}
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v7
with:
ref: ${{ inputs.tag || github.ref }}

- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/setup-qemu-action@v4
- uses: docker/setup-buildx-action@v4

- uses: docker/login-action@v3
- uses: docker/login-action@v4
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- id: meta
uses: docker/metadata-action@v5
uses: docker/metadata-action@v6
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE }}
tags: |
Expand All @@ -51,7 +51,7 @@ jobs:
# arm64 matters: the target deployment is a Hetzner CAX11, which is ARM.
# An amd64-only image would fail on the box it was designed for.
- id: build
uses: docker/build-push-action@v6
uses: docker/build-push-action@v7
with:
context: .
platforms: linux/amd64,linux/arm64
Expand All @@ -64,7 +64,7 @@ jobs:
cache-to: type=gha,mode=max

- name: Attest provenance
uses: actions/attest-build-provenance@v2
uses: actions/attest-build-provenance@v4
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE }}
subject-digest: ${{ steps.build.outputs.digest }}
Expand All @@ -75,7 +75,7 @@ jobs:
needs: image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v7
with:
fetch-depth: 0

Expand All @@ -97,7 +97,7 @@ jobs:
fi
cat release-notes.md

- uses: softprops/action-gh-release@v2
- uses: softprops/action-gh-release@v3
with:
body_path: release-notes.md
draft: false
Expand Down