Publish Python recovery conformance evidence #193
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 | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| ci: | |
| uses: runcycles/.github/.github/workflows/ci-python.yml@v1 | |
| with: | |
| mypy-target: runcycles | |
| recovery-conformance: | |
| name: Durable recovery conformance | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| repository: runcycles/cycles-protocol | |
| ref: b27d7cb38a8f2bd915dea64e4369a2b91f31008c | |
| path: .cycles-protocol | |
| persist-credentials: false | |
| - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: "3.12" | |
| - run: python -m pip install -e ".[dev]" | |
| - name: Run shared durable recovery scenarios | |
| run: >- | |
| python .cycles-protocol/scripts/run_client_recovery_conformance.py | |
| --claim durable | |
| --report-json recovery-conformance.json | |
| --implementation runcycles/cycles-client-python | |
| --implementation-commit ${{ github.event.pull_request.head.sha || github.sha }} | |
| --evidence-url https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
| --adapter python scripts/recovery_conformance_adapter.py | |
| - name: Upload recovery conformance evidence | |
| if: always() | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: recovery-conformance-${{ github.event.pull_request.head.sha || github.sha }} | |
| path: recovery-conformance.json | |
| if-no-files-found: error | |
| retention-days: 90 |