Clarify maintained docs and archive historical prose #84
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: packaged-demo-smoke | |
| on: | |
| push: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| packaged-demo: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 | |
| with: | |
| python-version: '3.11' | |
| - name: Install normal package build | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install . | |
| - name: Run demo outside repository checkout | |
| run: | | |
| cd "$RUNNER_TEMP" | |
| python -m ainir demo --out-dir "$RUNNER_TEMP/ainir-packaged-demo" | |
| ainir demo --out-dir "$RUNNER_TEMP/ainir-packaged-demo-console-script" | |
| - name: Confirm packaged fixtures are present | |
| run: | | |
| python - <<'PY' | |
| from importlib import resources | |
| root = resources.files('ainir.demo_examples') | |
| assert root.joinpath('demo_manifest.json').is_file() | |
| assert root.joinpath('create_user_outbox_safe').joinpath('draft.yaml').is_file() | |
| print('packaged demo resources: ok') | |
| PY | |
| github-source-install-demo: | |
| name: github-source-install-demo | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 | |
| with: | |
| python-version: '3.11' | |
| - name: Install current revision directly from GitHub | |
| env: | |
| PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }} | |
| run: | | |
| REF="$PR_HEAD_SHA" | |
| if [ -z "$REF" ]; then REF="$GITHUB_SHA"; fi | |
| python -m pip install --upgrade pip | |
| python -m pip install "git+https://github.com/${GITHUB_REPOSITORY}.git@${REF}" | |
| - name: Run installed demo outside any checkout | |
| run: | | |
| cd "$RUNNER_TEMP" | |
| python -m ainir demo --out-dir "$RUNNER_TEMP/ainir-github-install-demo" | |
| ainir demo --out-dir "$RUNNER_TEMP/ainir-github-install-demo-console-script" |