diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 656ebed..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: CI - -on: - push: - branches: [main] - pull_request: - -jobs: - test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-python@v5 - with: - python-version: "3.13" - - - name: Install uv - uses: astral-sh/setup-uv@v4 - - - name: Install dependencies - run: uv pip install --system -r requirements.txt - - - name: Run unit tests - run: python -m pytest tests/test_db.py tests/test_repositories.py tests/test_migration.py tests/test_permissions.py tests/test_api.py tests/test_api_scripts.py tests/test_cli.py -v - env: - JWT_SECRET_KEY: ci-test-secret-32chars-minimum!! - - docker-build: - runs-on: ubuntu-latest - needs: test - steps: - - uses: actions/checkout@v4 - - - name: Build Docker image - run: docker build -t data-analyst:test . - - - name: Run Docker health check - run: | - docker run -d --name test-app -p 8000:8000 \ - -e DATA_DIR=/data -e JWT_SECRET_KEY=ci-test-secret-32chars-minimum!! \ - data-analyst:test - sleep 5 - curl -f http://localhost:8000/api/health - docker stop test-app diff --git a/.gitignore b/.gitignore index 3af42b7..199f001 100644 --- a/.gitignore +++ b/.gitignore @@ -135,3 +135,4 @@ docs/AGENT-REPORTS/ # Internal transcripts and meeting notes docs/ZS_PADAK_* +.github/workflows/ci.yml