From 547c8e8e803d61f5afd43314eaa5315aa9539dad Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Fri, 20 Aug 2021 07:47:43 -0400 Subject: [PATCH] Initial work for full end to end conda-store-server tests --- .github/workflows/tests.yaml | 44 ++++++++++++++++++++++-------------- 1 file changed, 27 insertions(+), 17 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 17d721f0f..bda6e05e8 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -28,6 +28,7 @@ jobs: - name: Install Dependencies run: | pip install .[dev] + sudo apt install wait-for-it -y - name: Black Formatting run: | black --version @@ -37,24 +38,15 @@ jobs: run: | flake8 --version flake8 - - build-docker-image: - name: 'Build docker images' - runs-on: ubuntu-latest - strategy: - matrix: - docker-image: - - conda-store - - conda-store-server - steps: - - name: 'Checkout Infrastructure' - uses: actions/checkout@v2 - - name: Docker Build, Tag, Push Image - env: - IMAGE_NAME: quansight/${{ matrix.docker-image }} - IMAGE_TAG: ${{ github.sha }} + - name: Deploy docker-compose run: | - docker build -t $IMAGE_NAME:$IMAGE_TAG ${{ matrix.docker-image }} + docker-compose up -d + docker ps + + wait-for-it localhost:5432 # postgresql + wait-for-it localhost:9000 # minio + wait-for-it localhost:8000 # jupyterhub + wait-for-it localhost:5000 # conda-store-server test-conda-store: name: 'Test conda-store' @@ -79,3 +71,21 @@ jobs: run: | yarn pip install . + + build-docker-image: + name: 'Build docker images' + runs-on: ubuntu-latest + strategy: + matrix: + docker-image: + - conda-store + - conda-store-server + steps: + - name: 'Checkout Infrastructure' + uses: actions/checkout@v2 + - name: Docker Build, Tag, Push Image + env: + IMAGE_NAME: quansight/${{ matrix.docker-image }} + IMAGE_TAG: ${{ github.sha }} + run: | + docker build -t $IMAGE_NAME:$IMAGE_TAG ${{ matrix.docker-image }}