Integration tests OFF !Temporary.
This commit is contained in:
parent
3c511e10c8
commit
0e52f1b2dd
1 changed files with 25 additions and 25 deletions
|
|
@ -66,34 +66,34 @@ jobs:
|
||||||
run: uv run pytest --cov=src/contract_check --cov-branch --cov-report=term-missing --cov-fail-under=50 -m "not integration" tests/unit
|
run: uv run pytest --cov=src/contract_check --cov-branch --cov-report=term-missing --cov-fail-under=50 -m "not integration" tests/unit
|
||||||
|
|
||||||
# Integration tests.
|
# Integration tests.
|
||||||
test-integration:
|
# test-integration:
|
||||||
name: Integration tests
|
# name: Integration tests
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v4
|
# - uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup uv
|
# - name: Setup uv
|
||||||
uses: astral-sh/setup-uv@v8.3.2
|
# uses: astral-sh/setup-uv@v8.3.2
|
||||||
with:
|
# with:
|
||||||
enable-cache: true
|
# enable-cache: true
|
||||||
cache-dependency-glob: uv.lock
|
# cache-dependency-glob: uv.lock
|
||||||
|
|
||||||
- name: Install Python
|
# - name: Install Python
|
||||||
run: uv python install
|
# run: uv python install
|
||||||
|
|
||||||
- name: Sync dev dependencies
|
# - name: Sync dev dependencies
|
||||||
run: uv sync --group dev --frozen
|
# run: uv sync --group dev --frozen
|
||||||
|
|
||||||
# No --wait: minio-init-test is a one-shot container that exits (0) after
|
# # No --wait: minio-init-test is a one-shot container that exits (0) after
|
||||||
# creating the bucket, and --wait treats any exited container as failure.
|
# # creating the bucket, and --wait treats any exited container as failure.
|
||||||
# Health polling is done by the `infra` fixture in
|
# # Health polling is done by the `infra` fixture in
|
||||||
# tests/integration/conftest.py; this step just pre-pulls the images.
|
# # tests/integration/conftest.py; this step just pre-pulls the images.
|
||||||
- name: Start test infrastructure (postgres/redis/rabbitmq/minio)
|
# - name: Start test infrastructure (postgres/redis/rabbitmq/minio)
|
||||||
run: docker compose -p contract-check-test -f docker-compose.test.yml up -d
|
# run: docker compose -p contract-check-test -f docker-compose.test.yml up -d
|
||||||
|
|
||||||
- name: Run integration tests
|
# - name: Run integration tests
|
||||||
run: uv run pytest -m integration
|
# run: uv run pytest -m integration
|
||||||
|
|
||||||
- name: Teardown infrastructure
|
# - name: Teardown infrastructure
|
||||||
if: always()
|
# if: always()
|
||||||
run: docker compose -p contract-check-test -f docker-compose.test.yml down -v
|
# run: docker compose -p contract-check-test -f docker-compose.test.yml down -v
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue