chore(docs): align badges and header layout #56
Workflow file for this run
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
| # Pull request verification workflow. | |
| # Purpose: validate both source tests and generated/installable artifacts. | |
| name: Verify | |
| on: | |
| # Run on PRs targeting main so merge decisions are based on full verification. | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| # Cancel superseded verification runs for the same PR. | |
| group: verify-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| # Verify jobs only read repository contents. | |
| contents: read | |
| env: | |
| # Shared interpreter version for reproducible CI behavior. | |
| PYTHON_VERSION: "3.11" | |
| # Pin Poetry CLI version for deterministic CI behavior. | |
| POETRY_VERSION: "2.3.4" | |
| # Keep Poetry virtual environments inside the workspace for deterministic paths. | |
| POETRY_VIRTUALENVS_IN_PROJECT: "true" | |
| jobs: | |
| unit-tests: | |
| # Fast correctness check for repository source code. | |
| name: Unit Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install Poetry | |
| run: pipx install "poetry==${POETRY_VERSION}" | |
| - name: Setup Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ env.PYTHON_VERSION }} | |
| cache: poetry | |
| cache-dependency-path: poetry.lock | |
| - name: Install dependencies | |
| run: poetry install --no-interaction --no-ansi | |
| - name: Run unit tests | |
| run: make test | |
| vstack-verify: | |
| # Ensures generated artifacts can be installed and validated in an isolated target. | |
| name: Artifact Install Verify | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install Poetry | |
| run: pipx install "poetry==${POETRY_VERSION}" | |
| - name: Setup Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ env.PYTHON_VERSION }} | |
| cache: poetry | |
| cache-dependency-path: poetry.lock | |
| - name: Install dependencies | |
| run: poetry install --no-interaction --no-ansi | |
| - name: Set unique temp target directory | |
| # Avoid cross-run collisions on shared/self-hosted runners. | |
| run: echo "TARGET_DIR=${RUNNER_TEMP}/vstack-pr-target-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}" >> "$GITHUB_ENV" | |
| - name: Create temp target directory | |
| run: mkdir -p "${TARGET_DIR}" | |
| - name: Install artifacts into temp target | |
| run: poetry run vstack install --target "${TARGET_DIR}" | |
| - name: Verify source and installed output | |
| run: poetry run vstack verify --target "${TARGET_DIR}" |