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
4 changes: 2 additions & 2 deletions .github/actions/setup-pandoc/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ runs:
steps:
- name: Load cached Pandoc
id: cached-pandoc
uses: actions/cache@v4
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: /usr/local/bin/pandoc
key: pandoc-${{ runner.os }}-${{ inputs.pandoc-version }}-${{ hashFiles('.tool-versions') }}
Expand All @@ -21,7 +21,7 @@ runs:

- name: Install Pandoc
if: steps.cached-pandoc.outputs.cache-hit != 'true'
uses: pandoc/actions/setup@v1
uses: pandoc/actions/setup@86321b6dd4675f5014c611e05088e10d4939e09e # v1
with:
version: ${{ inputs.pandoc-version }}

Expand Down
2 changes: 1 addition & 1 deletion .github/actions/setup-uv/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ inputs:
runs:
using: "composite"
steps:
- uses: astral-sh/setup-uv@v6
- uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6
with:
version: 0.11.19
python-version: ${{ inputs.python-version }}
Expand Down
34 changes: 17 additions & 17 deletions .github/workflows/modpoll-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
tag: ${{ steps.release.outputs.tag }}
image-version: ${{ steps.release.outputs.image-version }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
fetch-depth: 0
- id: release
Expand All @@ -49,7 +49,7 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
ref: ${{ github.ref }}
fetch-depth: 0
Expand All @@ -65,7 +65,7 @@ jobs:
python .github/scripts/preview-release.py guard "$TAG"
- name: Build portable distributions
run: uv build --no-sources --out-dir dist
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: application-distributions
path: packages/modpoll/dist/*
Expand All @@ -74,8 +74,8 @@ jobs:
python .github/scripts/check-portable-wheel.py dist/*.whl
dist="$PWD/dist"
cd "$RUNNER_TEMP"
uv run --isolated --with "$dist"/*.whl modpoll --version
uv run --isolated --with "$dist"/*.tar.gz modpoll --version
uv run --isolated --refresh-package modpoll-wot --with "$dist"/*.whl modpoll --version
uv run --isolated --refresh-package modpoll-wot --with "$dist"/*.tar.gz modpoll --version
- name: Check immutable version
id: pypi
env:
Expand All @@ -101,12 +101,12 @@ jobs:
if: ${{ !cancelled() && needs.candidate.result == 'success' && (needs.publish.result == 'success' || (github.ref_name == 'v2' && needs.publish.result == 'skipped')) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
ref: ${{ github.ref }}
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
- uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
- uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
with:
registry: ${{ vars.DOCKER_REGISTRY }}
username: ${{ vars.DOCKER_USERNAME }}
Expand Down Expand Up @@ -138,7 +138,7 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
ref: ${{ needs.candidate.outputs.git-tag }}
- uses: ./.github/actions/setup-uv
Expand All @@ -147,7 +147,7 @@ jobs:
- uses: ./.github/actions/setup-pandoc
- name: Build preview documentation
run: make docs
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
ref: gh-pages
path: packages/modpoll/.pages
Expand All @@ -165,7 +165,7 @@ jobs:
curl -fsSL "$wot_source/profile.md" -o vocab/wot-modbus/contract-0.2.txt
python .github/scripts/assemble-docs.py docs/_build/html .site v2 --vocab vocab
printf '%s\n' "$(git rev-parse HEAD)" > .site/v2/source-sha.txt
- uses: peaceiris/actions-gh-pages@v4
- uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4
with:
github_token: ${{ github.token }}
publish_dir: packages/modpoll/.site
Expand All @@ -174,19 +174,19 @@ jobs:
if: ${{ !cancelled() && needs.docs.result == 'success' && needs.image.result == 'success' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
ref: ${{ needs.candidate.outputs.git-tag }}
- uses: astral-sh/setup-uv@v6
- uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6
with:
version: 0.11.19
python-version: '3.12'
enable-cache: true
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
ref: 0b42099e8b22eaaa4788a9f91e8bf60b4870204c
path: packages/modpoll/.interop/modpoll-1x
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
repository: top-maker/modsim
ref: 92fe5d4c417b2691693feb2b6bd93fd1f54439fe
Expand Down Expand Up @@ -229,7 +229,7 @@ jobs:
- name: Remove acceptance broker
if: always()
run: docker rm -f preview-acceptance || true
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
if: always()
with:
name: published-acceptance
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/modpoll-wot-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
fetch-depth: 0
- name: Require a tag on v2 that matches the package version
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/modpoll-wot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ jobs:
matrix:
python-version: ['3.10', '3.14']
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6
with:
version: 0.11.19
python-version: ${{ matrix.python-version }}
Expand All @@ -43,13 +43,13 @@ jobs:
name: modpoll-wot package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: jdx/mise-action@5228313ee0372e111a38da051671ca30fc5a96db # v3.6.3
with:
version: '2026.10.1'
working_directory: packages/modpoll-wot
- run: mise run check
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: distributions
path: packages/modpoll-wot/dist/*
Expand All @@ -71,12 +71,12 @@ jobs:
run:
working-directory: packages/${{ matrix.package }}
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
name: distributions
path: ${{ runner.temp }}/dist
- uses: astral-sh/setup-uv@v6
- uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6
with:
version: 0.11.19
python-version: '3.12'
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/modpoll.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
contents: read
steps:
- name: Check out
uses: actions/checkout@v4
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4

- name: Set up uv
uses: ./.github/actions/setup-uv
Expand All @@ -59,7 +59,7 @@ jobs:
fail-fast: false
steps:
- name: Check out
uses: actions/checkout@v4
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4

- name: Set up uv
uses: ./.github/actions/setup-uv
Expand All @@ -76,7 +76,7 @@ jobs:
contents: read
steps:
- name: Check out
uses: actions/checkout@v4
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4

- name: Set up uv
uses: ./.github/actions/setup-uv
Expand All @@ -95,18 +95,18 @@ jobs:
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: ./.github/actions/setup-uv
with:
package: modpoll
- name: Check out the 1.x baseline
uses: actions/checkout@v4
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
repository: top-maker/modpoll
ref: 0b42099e8b22eaaa4788a9f91e8bf60b4870204c
path: packages/modpoll/.interop/modpoll-1x
- name: Check out the simulator fixture
uses: actions/checkout@v4
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
repository: top-maker/modsim
ref: 92fe5d4c417b2691693feb2b6bd93fd1f54439fe
Expand All @@ -122,7 +122,7 @@ jobs:
uv pip install --python .interop/modsim/.venv/bin/python --no-deps ./.interop/modsim
uv pip install --python .interop/modsim/.venv/bin/python pyserial==3.5
- name: Set up pinned external WoT Consumer
uses: actions/setup-node@v4
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: '24.16.0'
cache: npm
Expand Down Expand Up @@ -161,7 +161,7 @@ jobs:
- name: Remove private acceptance broker
if: always()
run: docker rm -f modpoll-mqtt-${{ github.run_id }}-${{ github.run_attempt }} || true
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
if: always()
with:
name: modsim-equivalence
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/modsim-acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6
with:
version: 0.11.19
python-version: '3.12'
Expand Down Expand Up @@ -66,17 +66,17 @@ jobs:
catalog-interop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: ./.github/actions/setup-uv
with:
package: modsim
# Unchanged by TOOL-01: the independent clients stay pinned to the modpoll commit and release they used.
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
repository: top-maker/modpoll
ref: 93daa74bc859fe8a5704f3e94e4f6eb0df797ec2
path: packages/modsim/.interop/modpoll
- uses: actions/setup-node@v4
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: '24'
- run: npm ci --prefix .interop/modpoll/tools/wot-interop --ignore-scripts --no-audit --no-fund
Expand All @@ -97,7 +97,7 @@ jobs:
cd "$RUNNER_TEMP/catalog-acceptance"
"$RUNNER_TEMP/modsim/bin/python" tools/fetch-models.py --output "$RUNNER_TEMP/catalog-acceptance/inputs"
"$RUNNER_TEMP/modsim/bin/python" tools/catalog-interop.py --modpoll-python "$RUNNER_TEMP/modpoll/bin/python" --node-reader "$reader" --output "$RUNNER_TEMP/catalog-interop.json"
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: catalog-interop
path: |
Expand Down
32 changes: 16 additions & 16 deletions .github/workflows/modsim-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
contents: write
actions: read
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
ref: ${{ github.ref }}
fetch-depth: 0
Expand All @@ -45,16 +45,16 @@ jobs:
GIT_TAG: ${{ github.ref_name }}
run: python .github/scripts/preview-release.py guard "${GIT_TAG#modsim-}"
- run: uv build --no-sources --clear --out-dir dist
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: preview-distributions
path: packages/modsim/dist/*
- name: Verify portable distributions
run: |
dist="$PWD/dist"
cd "$RUNNER_TEMP"
uv run --isolated --with "$dist"/*.whl modsim --version
uv run --isolated --with "$dist"/*.tar.gz modsim --version
uv run --isolated --refresh-package modpoll-wot --with "$dist"/*.whl modsim --version
uv run --isolated --refresh-package modpoll-wot --with "$dist"/*.tar.gz modsim --version
- name: Check immutable version
id: registry
env:
Expand All @@ -79,12 +79,12 @@ jobs:
needs: publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
ref: ${{ github.ref }}
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
- uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
- uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
with:
registry: ${{ vars.DOCKER_REGISTRY }}
username: ${{ vars.DOCKER_USERNAME }}
Expand All @@ -103,7 +103,7 @@ jobs:
needs: publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
ref: ${{ github.ref }}
- uses: ./.github/actions/setup-uv
Expand All @@ -116,14 +116,14 @@ jobs:
needs: [publish, image, docs]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
ref: ${{ github.ref }}
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
ref: ${{ inputs.tag || github.ref }}
path: release
- uses: astral-sh/setup-uv@v6
- uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6
with:
version: 0.11.19
python-version: '3.12'
Expand Down Expand Up @@ -151,8 +151,8 @@ jobs:
if [ -f "$release/deployment.yaml" ]; then cp "$release/deployment.yaml" "$RUNNER_TEMP/acceptance/"; fi
prepare="$PWD/tools/prepare-acceptance.py"
cd "$RUNNER_TEMP/acceptance"
uv run --isolated --with "$RUNNER_TEMP"/distributions/*.whl python "$prepare" "$RUNNER_TEMP/acceptance"
uv run --isolated --with "$RUNNER_TEMP"/distributions/*.whl --with pytest python -m pytest tests/test_wot.py tests/test_deployment.py tests/test_codec.py -q --junitxml=acceptance.xml
uv run --isolated --refresh-package modpoll-wot --with "$RUNNER_TEMP"/distributions/*.whl python "$prepare" "$RUNNER_TEMP/acceptance"
uv run --isolated --refresh-package modpoll-wot --with "$RUNNER_TEMP"/distributions/*.whl --with pytest python -m pytest tests/test_wot.py tests/test_deployment.py tests/test_codec.py -q --junitxml=acceptance.xml
- name: Verify published image and contributed deployment
env:
REGISTRY: ${{ vars.DOCKER_REGISTRY }}
Expand All @@ -169,10 +169,10 @@ jobs:
docker run -d --name modsim-preview -p 127.0.0.1:5020:5020 "$REGISTRY/$USERNAME/modsim:$version" python -m modsim up -f /app/deployment.yaml
fi
cd "$RUNNER_TEMP/acceptance"
uv run --isolated --with "$RUNNER_TEMP"/distributions/*.whl python tools/preview-acceptance.py
uv run --isolated --refresh-package modpoll-wot --with "$RUNNER_TEMP"/distributions/*.whl python tools/preview-acceptance.py
- if: always()
run: docker rm -f modsim-preview || true
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
if: always()
with:
name: published-acceptance
Expand Down
Loading
Loading