Skip to content

fix(ci): stop nightly UAT running live-provider tests #122

fix(ci): stop nightly UAT running live-provider tests

fix(ci): stop nightly UAT running live-provider tests #122

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: astral-sh/setup-uv@e4db8464a088ece1b920f60402e813ea4de65b8f # v4
with:
python-version: "3.12"
- run: uv sync --all-packages
- run: uv run ruff check .
- run: uv run ruff format --check .
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: astral-sh/setup-uv@e4db8464a088ece1b920f60402e813ea4de65b8f # v4
with:
python-version: "3.12"
- run: uv sync --all-packages
- run: cd packages/agent-session-tools && uv run pyright src/
- run: cd packages/studyctl && uv run pyright src/
sast:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: astral-sh/setup-uv@e4db8464a088ece1b920f60402e813ea4de65b8f # v4
with:
python-version: "3.12"
- run: uv sync --all-packages
- name: Run bandit (SAST)
run: uv run bandit --recursive --skip B101,B104,B105,B106,B107,B108,B110,B310,B404,B602,B603,B606,B607,B608 packages/
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: astral-sh/setup-uv@e4db8464a088ece1b920f60402e813ea4de65b8f # v4
with:
python-version: "3.12"
- run: uv sync --all-packages
- name: Audit dependencies for known vulnerabilities
run: uv audit
release-consistency:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: astral-sh/setup-uv@e4db8464a088ece1b920f60402e813ea4de65b8f # v4
with:
python-version: "3.12"
- run: python scripts/check-release-consistency.py
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12", "3.13"]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: astral-sh/setup-uv@e4db8464a088ece1b920f60402e813ea4de65b8f # v4
with:
python-version: ${{ matrix.python-version }}
- run: uv sync --all-packages --group dev
- run: uv run pytest --tb=short -m "not integration and not e2e and not live_provider" --cov=packages --cov-report=term-missing
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: astral-sh/setup-uv@e4db8464a088ece1b920f60402e813ea4de65b8f # v4
with:
python-version: "3.12"
- run: ./scripts/build-release.sh
install-smoke:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: astral-sh/setup-uv@e4db8464a088ece1b920f60402e813ea4de65b8f # v4
with:
python-version: "3.12"
- run: ./scripts/build-release.sh
- name: Install built wheel without optional extras
run: |
uv venv /tmp/studyctl-smoke
uv pip install --python /tmp/studyctl-smoke/bin/python dist/studyctl-*.whl
- name: Smoke-test installed CLI entry points
run: |
export PATH="/tmp/studyctl-smoke/bin:$PATH"
./scripts/smoke-installed-cli.sh