fix: ci test with test stack based on fluxon ops; kv design docs #43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci_2_virt_node | |
| on: | |
| push: | |
| pull_request: | |
| types: | |
| - opened | |
| - synchronize | |
| - reopened | |
| # Rebuild when doc or homepage inputs change. | |
| paths: | |
| - ".github/workflows/all_test.yml" | |
| - ".github/workflows/docs-pages.yml" | |
| - "setup.py" | |
| - "fluxon_py/**" | |
| - "fluxon_rs/**" | |
| - "setup_and_pack/**" | |
| - "deployment/**" | |
| - "examples/**" | |
| - "fluxon_release/install.py" | |
| - "fluxon_release/closed_sdk/**" | |
| - "fluxon_doc_cn/**" | |
| - "fluxon_doc_en/**" | |
| - "README.md" | |
| - "README_CN.md" | |
| - "pics/**" | |
| - "LICENSE" | |
| - "fluxon_rs/rust-toolchain.toml" | |
| - "scripts/build_doc_site.py" | |
| permissions: | |
| contents: read | |
| jobs: | |
| ci-2-virt-node: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| - name: Install host dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y --no-install-recommends \ | |
| git \ | |
| pigz \ | |
| protobuf-compiler \ | |
| python3-venv \ | |
| rsync | |
| - name: Verify Docker availability | |
| run: | | |
| command -v docker >/dev/null | |
| if ! docker info >/dev/null 2>&1; then | |
| sudo systemctl start docker | |
| docker info >/dev/null | |
| fi | |
| docker version | |
| - name: Install Python dependencies | |
| run: python3 -m pip install PyYAML | |
| - name: Sync rather_no_git_submodule workspace inputs | |
| run: python3 fluxon_rs/scripts/rather_no_git_submodule.py | |
| - name: Run ci_2_virt_node full flow | |
| env: | |
| FLUXON_DOC_SITE_BASE_URL: ${{ github.repository_owner }}.github.io/${{ github.event.repository.name }} | |
| run: | | |
| python3 fluxon_test_stack/ci_2_virt_node.py \ | |
| --print-generated \ | |
| --hostworkdir "$RUNNER_TEMP/fluxon_deploy" \ | |
| --scene-id ci_doc_page \ | |
| --skip-doc-build | |
| - name: Normalize ci_2_virt_node debug artifact permissions | |
| if: ${{ always() }} | |
| run: | | |
| chmod -R a+rX .dever || true | |
| chmod -R a+rX fluxon_release || true | |
| chmod -R a+rX setup_and_pack/nix/runs || true | |
| find .dever -type f -name '*.yaml' -exec chmod a+r {} + || true | |
| find .dever -type f -name '*.log' -exec chmod a+r {} + || true | |
| find .dever -type f -name '*.json' -exec chmod a+r {} + || true | |
| find .dever -type f -name '*.html' -exec chmod a+r {} + || true | |
| find .dever -type f -name '*.txt' -exec chmod a+r {} + || true | |
| find .dever -type f -name '*.sha256' -exec chmod a+r {} + || true | |
| find .dever -type d -path '*/pack_release_runtime/*' -exec chmod a+rx {} + || true | |
| find .dever -type d -path '*/pack_release_runtime/project-data/*' -exec chmod a+rx {} + || true | |
| find .dever -path '*/pack_release_runtime/project-data/*' \ | |
| \( -path '*/instances/*/logs' -o -path '*/instances/*/release' -o -path '*/assemblies/*/profile' \) \ | |
| -exec chmod -R a+rX {} + || true | |
| - name: Upload ci_2_virt_node debug artifacts | |
| if: ${{ always() }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ci-2-virt-node-debug-${{ github.sha }} | |
| if-no-files-found: warn | |
| compression-level: 1 | |
| path: | | |
| .dever/** | |
| fluxon_release/** | |
| setup_and_pack/nix/runs/** | |
| .dever/**/pack_release_runtime/project-data/**/instances/**/logs/** | |
| .dever/**/pack_release_runtime/project-data/**/instances/**/release/** | |
| .dever/**/pack_release_runtime/project-data/**/assemblies/**/profile/** |