Skip to content

chore(deps): bump the all group across 1 directory with 6 updates #63

chore(deps): bump the all group across 1 directory with 6 updates

chore(deps): bump the all group across 1 directory with 6 updates #63

Workflow file for this run

name: ci
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
validate:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.12"
cache: pip
- run: python -m pip install -e ".[dev]"
- run: python -m ruff check .
- run: python -m mypy
- name: Contract compatibility (pinned cas-contracts v0.1)
# Consumer-side gate: fails red if the pinned CAS contract version or the
# vendored v0.1 schema release drifts from what the Pydantic models emit.
run: python -m pytest tests/test_contract_registry.py -q --tb=short -o addopts=""
- run: python -m pytest
- run: python -m cas_reference_product.evidence
docker:
runs-on: ubuntu-latest
timeout-minutes: 20
permissions:
contents: read
packages: write
needs: validate
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
- name: Build image
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
with:
context: .
platforms: linux/amd64
push: false
load: true
tags: cas-reference-product:ci
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Health-check smoke test
run: |
docker run -d --name cas-ci -p 8080:8080 \
-e ENVIRONMENT=local -e WORKFLOW_BACKEND=local \
cas-reference-product:ci
# Wait up to 30s for the app to become ready
for i in $(seq 1 15); do
if curl -sf http://localhost:8080/health/ready; then
echo "App is ready"; break
fi
sleep 2
done
curl -sf http://localhost:8080/health/live
curl -sf http://localhost:8080/health/ready
docker stop cas-ci
- name: Log in to GHCR
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: docker/login-action@06fb636fac595d6fb4b28a5dfcb21a6f5091859c # v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push to GHCR
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
with:
context: .
platforms: linux/amd64
push: true
tags: |
ghcr.io/coding-autopilot-system/cas-reference-product:latest
ghcr.io/coding-autopilot-system/cas-reference-product:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max