diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index f85d7d45..cd49c069 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -37,11 +37,11 @@ jobs: run: ruff check . # --------------------------------------------------------------------------- - # Tests + # Tests — unit only (integration tests run locally via make test) # --------------------------------------------------------------------------- pytest: runs-on: ubuntu-latest - timeout-minutes: 90 + timeout-minutes: 60 services: postgres: image: postgres:15 @@ -56,10 +56,9 @@ jobs: --health-retries 5 env: - # act_runner executes jobs in Docker containers on the same network as services, - # so use the service name (postgres) as hostname with the internal port (5432) TEST_DATABASE_URL: "postgresql://test_user:test_password@postgres:5432/orion_test" DATABASE_URL: "postgresql://test_user:test_password@postgres:5432/orion_test" + LOG_LEVEL: "WARNING" steps: - uses: actions/checkout@v4 @@ -75,10 +74,7 @@ jobs: run: uv pip install --system -r requirements.txt -r requirements-test.txt - name: Run unit tests - run: python -m pytest -m "unit" -v --tb=short --timeout=120 --no-cov --override-ini="addopts=" -p no:cacheprovider --durations=20 - - - name: Run integration tests - run: python -m pytest -m "integration" -v --tb=short --timeout=120 --no-cov --override-ini="addopts=" -p no:cacheprovider --durations=20 + run: python -m pytest -m "unit" -q --tb=short --timeout=120 --no-cov --override-ini="addopts=" -p no:cacheprovider -p no:logging --durations=20 validate: runs-on: ubuntu-latest