agnes-the-ai-analyst/.github/workflows/ci.yml
dependabot[bot] 7012966482
chore(deps): bump actions/checkout from 5 to 6 (#125)
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: ZdenekSrotyr <139972147+ZdenekSrotyr@users.noreply.github.com>
2026-04-29 09:58:48 +02:00

70 lines
1.5 KiB
YAML

name: CI
on:
push:
branches: [main, "feature/**"]
pull_request:
branches: [main]
schedule:
- cron: "0 3 * * *" # Nightly at 03:00 UTC — runs docker-e2e
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.13"
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Install dependencies
run: uv pip install --system ".[dev]"
- name: Run tests (parallel)
run: pytest tests/ -v --tb=short -n auto
env:
TESTING: "1"
docker-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Build Docker image
run: docker build -t data-analyst:test .
docker-e2e:
runs-on: ubuntu-latest
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
needs: docker-build
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.13"
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Install dependencies
run: uv pip install --system ".[dev]"
- name: Start services
run: |
touch .env
docker compose up -d --wait --wait-timeout 60
- name: Run Docker E2E tests
run: pytest tests/ -v --tb=short -m docker --timeout=120
env:
TESTING: "1"
- name: Stop services
if: always()
run: docker compose down