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
8 changes: 4 additions & 4 deletions .github/actions/build-documentation/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ runs:
using: "composite"
steps:
- name: Set up Python 3.12
uses: actions/setup-python@v5
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
with:
python-version: "3.12"
cache: "pip"
Expand All @@ -24,12 +24,12 @@ runs:
run: pip install hatch

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: ${{ inputs.node-version }}

- name: Setup pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6
with:
package_json_file: docs/package.json

Expand All @@ -43,6 +43,6 @@ runs:

- name: Upload Pages artifact
if: inputs.upload-pages-artifact == 'true'
uses: actions/upload-pages-artifact@v3
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5
with:
path: docs/dist
23 changes: 14 additions & 9 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ on:
concurrency: release

permissions:
contents: write
packages: read
contents: read

jobs:
release:
Expand All @@ -42,10 +41,16 @@ jobs:
DRY_RUN: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.dry_run == 'true' && '--noop' || '' }}
PRERELEASE: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.prerelease || 'true' }}
steps:
- uses: actions/checkout@v4
- uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3
id: app-token
with:
app-id: ${{ secrets.BOT_ID }}
private-key: ${{ secrets.BOT_SK }}

- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ steps.app-token.outputs.token }}

- name: Verify production puyapy and algorand-python dependencies
if: ${{ env.PRERELEASE == 'false' }}
Expand Down Expand Up @@ -75,7 +80,7 @@ jobs:
run: pipx install hatch

- name: Set up Python 3.12
uses: actions/setup-python@v5
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
with:
python-version: "3.12"
cache: "pip"
Expand All @@ -101,18 +106,18 @@ jobs:
- name: Python Semantic Release
id: semantic-release
if: ${{ github.ref == 'refs/heads/main' }}
uses: python-semantic-release/python-semantic-release@master
uses: python-semantic-release/python-semantic-release@350c48fcb3ffcdfd2e0a235206bc2ecea6b69df0 # v10.5.3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ steps.app-token.outputs.token }}
prerelease: ${{ env.PRERELEASE == 'true' }}
root_options: $DRY_RUN

- name: Publish to PyPI
if: ${{ !inputs.dry_run && steps.semantic-release.outputs.released == 'true' }}
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
with:
packages-dir: dist

- uses: actions/upload-artifact@v4 # upload artifacts so they are retained on the job
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
path: dist
17 changes: 10 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@ on:
schedule:
- cron: "0 8 * * 1" # Each monday 8 AM UTC

permissions:
contents: read

jobs:
check-python:
runs-on: "ubuntu-latest"
steps:
- name: Checkout source code
uses: actions/checkout@v4
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6

- name: Set up Python 3.12
uses: actions/setup-python@v5
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
with:
python-version: "3.12"
cache: "pip"
Expand All @@ -23,12 +26,12 @@ jobs:
run: pip install hatch

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: "22.x"

- name: Setup pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6
with:
package_json_file: docs/package.json

Expand Down Expand Up @@ -63,10 +66,10 @@ jobs:
python-version: ["3.12", "3.13"]
steps:
- name: Checkout source code
uses: actions/checkout@v4
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
Expand All @@ -84,7 +87,7 @@ jobs:
run: hatch run examples.py${{ matrix.python-version }}:tests

- name: Upload coverage artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
if: ${{ matrix.python-version == '3.13' }}
with:
name: coverage-reports
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/gh-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
workflow_call:
workflow_dispatch:

permissions:
contents: read

jobs:
build-and-publish-docs:
runs-on: ubuntu-latest
Expand All @@ -13,7 +16,7 @@ jobs:
id-token: write
steps:
- name: Checkout source code
uses: actions/checkout@v4
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6

- name: Build and upload docs artifact
uses: ./.github/actions/build-documentation
Expand All @@ -22,4 +25,4 @@ jobs:
upload-pages-artifact: 'true'

- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5
13 changes: 7 additions & 6 deletions .github/workflows/publish-devportal-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Publish DevPortal Docs
on:
workflow_dispatch:
push:
branches: [main]
tags: ['v*']

permissions:
Expand All @@ -12,17 +13,17 @@ jobs:
publish-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6

- uses: actions/setup-node@v6
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: 22
node-version: 24.x

- uses: pnpm/action-setup@v4
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6
with:
package_json_file: docs/package.json

- uses: actions/setup-python@v5
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
with:
python-version: '3.12'
cache: pip
Expand All @@ -34,6 +35,6 @@ jobs:
run: hatch run docs:api

- name: Publish DevPortal Docs
uses: algorandfoundation/devportal/.github/actions/publish-devportal-docs@ci/update-publish-devportal-docs-workflow
uses: algorandfoundation/devportal/.github/actions/publish-devportal-docs@release/ak-v4
with:
docs-dir: docs
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ pythonpath = ['src']
[tool.semantic_release]
version_toml = ["pyproject.toml:project.version"]
build_command = "pip install hatch && hatch build"
commit_message = "{version}\n\n[skip ci]"
commit_message = "{version}\n\nskip-checks: true"
tag_format = "v{version}"
major_on_zero = true

Expand Down