From b300124fb295364711034f98591438a141df26ec Mon Sep 17 00:00:00 2001 From: Petr Jasek Date: Wed, 14 Aug 2024 14:15:08 +0200 Subject: [PATCH] fix docker-compose on github actions error --- .github/docker-compose.yml | 22 ---------------------- .github/workflows/tests.yml | 19 +++++++++++++++++-- 2 files changed, 17 insertions(+), 24 deletions(-) delete mode 100644 .github/docker-compose.yml diff --git a/.github/docker-compose.yml b/.github/docker-compose.yml deleted file mode 100644 index 0227378..0000000 --- a/.github/docker-compose.yml +++ /dev/null @@ -1,22 +0,0 @@ -version: "2.4" -services: - redis: - image: redis:alpine - ports: - - "6379:6379" - - mongo: - image: mongo:4.4 - ports: - - "27017:27017" - tmpfs: - - /data/db - - elastic: - image: elasticsearch:7.10.1 - ports: - - "9200:9200" - environment: - - discovery.type=single-node - tmpfs: - - /usr/share/elasticsearch/data diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 56a0272..e8f02be 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,6 +9,23 @@ jobs: server: runs-on: ubuntu-latest + services: + redis: + image: redis:alpine + ports: + - "6379:6379" + + mongo: + image: mongo:4.4 + ports: + - "27017:27017" + + elastic: + image: elasticsearch:7.10.1 + ports: + - "9200:9200" + env: + discovery.type: single-node defaults: run: @@ -27,8 +44,6 @@ jobs: sudo apt-get update sudo apt-get -y install libxml2-dev libxmlsec1-dev libxmlsec1-openssl libexempi-dev - - run: docker-compose -f ../.github/docker-compose.yml up -d - - run: | python -m pip install --upgrade pip wheel setuptools pip install -r dev-requirements.txt