Skip to content

Commit

Permalink
resolve conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
MehmedGIT committed Jan 30, 2024
2 parents 1fdcf4c + 0f1992e commit 4a9bb87
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,12 @@ jobs:
- name: Install Docker on macOS
if: runner.os == 'macos'
run: |
brew install docker
brew install docker docker-compose
colima start
- name: Test network integration with pytest
run: |
make integration-test
if [[ "${{ matrix.os }}" == "macos"* ]];then
make integration-test DOCKER_COMPOSE=docker-compose
else
make integration-test
fi
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ TESTDIR = $(CURDIR)/tests
PYTEST_ARGS = --continue-on-collection-errors
VERSION = $(shell cat VERSION)

DOCKER_COMPOSE = docker compose

SPHINX_APIDOC =

BUILD_ORDER = ocrd_utils ocrd_models ocrd_modelfactory ocrd_validators ocrd_network ocrd
Expand Down Expand Up @@ -219,10 +221,10 @@ test: assets

INTEGRATION_TEST_IN_DOCKER = docker exec core_test
integration-test:
docker compose -f tests/network/docker-compose.yml up -d
$(DOCKER_COMPOSE) --file tests/network/docker-compose.yml up -d
sleep 20
$(INTEGRATION_TEST_IN_DOCKER) pytest -k 'test_rmq or test_db or test_processing_server' -v
docker compose -f tests/network/docker-compose.yml down --remove-orphans
$(DOCKER_COMPOSE) --file tests/network/docker-compose.yml down --remove-orphans

benchmark:
$(PYTHON) -m pytest $(TESTDIR)/model/test_ocrd_mets_bench.py
Expand Down

0 comments on commit 4a9bb87

Please sign in to comment.