Update ci.yml
This commit is contained in:
parent
3c80d21f0a
commit
ef39c2793c
1 changed files with 21 additions and 21 deletions
42
.github/workflows/ci.yml
vendored
42
.github/workflows/ci.yml
vendored
|
|
@ -60,33 +60,33 @@ jobs:
|
|||
run: uv run pytest --cov=src/contract_check --cov-branch --cov-report=term-missing --cov-fail-under=59 -m "not integration" tests/unit
|
||||
|
||||
# Integration tests.
|
||||
test-integration:
|
||||
name: Integration tests
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
# test-integration:
|
||||
# name: Integration tests
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@v4
|
||||
|
||||
- name: Setup uv
|
||||
uses: astral-sh/setup-uv@v8.3.2
|
||||
with:
|
||||
enable-cache: true
|
||||
cache-dependency-glob: uv.lock
|
||||
# - name: Setup uv
|
||||
# uses: astral-sh/setup-uv@v8.3.2
|
||||
# with:
|
||||
# enable-cache: true
|
||||
# cache-dependency-glob: uv.lock
|
||||
|
||||
- name: Install Python
|
||||
run: uv python install
|
||||
# - name: Install Python
|
||||
# run: uv python install
|
||||
|
||||
- name: Sync dev dependencies
|
||||
run: uv sync --group dev --frozen
|
||||
# - name: Sync dev dependencies
|
||||
# run: uv sync --group dev --frozen
|
||||
|
||||
- name: Start infrastructure (postgres/redis/rabbitmq/minio)
|
||||
run: docker compose up -d --wait
|
||||
# - name: Start infrastructure (postgres/redis/rabbitmq/minio)
|
||||
# run: docker compose up -d --wait
|
||||
|
||||
- name: Run integration tests
|
||||
run: uv run pytest -m integration
|
||||
# - name: Run integration tests
|
||||
# run: uv run pytest -m integration
|
||||
|
||||
- name: Teardown infrastructure
|
||||
if: always()
|
||||
run: docker compose down -v
|
||||
# - name: Teardown infrastructure
|
||||
# if: always()
|
||||
# run: docker compose down -v
|
||||
|
||||
# Build and push service images on pushes to main. Set these repository secrets:
|
||||
# REGISTRY e.g. ghcr.io (or docker.io, your-private-registry.io)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue