From 75368c521bea7dd175ab247cb0ab11ff34de7d81 Mon Sep 17 00:00:00 2001 From: Michael Thornton Date: Thu, 7 Dec 2023 09:58:02 -0800 Subject: [PATCH] move mongo service to build --- .github/workflows/blt.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/blt.yml b/.github/workflows/blt.yml index 3e3cecea..670a2e09 100644 --- a/.github/workflows/blt.yml +++ b/.github/workflows/blt.yml @@ -16,7 +16,16 @@ jobs: build: runs-on: ubuntu-latest - + services: + mongodb: + image: mongo:latest + env: + MONGO_INITDB_ROOT_USERNAME: root + MONGO_INITDB_ROOT_PASSWORD: password + MONGO_INITDB_DATABASE: nmdc + MONGO_HOST: localhost + ports: + - 27017:27017 steps: - uses: actions/checkout@v3 - name: Set up Python 3.9 @@ -31,17 +40,8 @@ jobs: test: runs-on: ubuntu-latest needs: build - services: - mongodb: - image: mongo - env: - MONGO_INITDB_ROOT_USERNAME: root - MONGO_INITDB_ROOT_PASSWORD: password - MONGO_INITDB_DATABASE: nmdc - MONGO_HOST: localhost - ports: - - 27017:27017 - options: --health-cmd "mongo --version" --health-interval 10s --health-timeout 5s --health-retries 12 + + steps: # - uses: actions/checkout@v3 # - name: Set up Python 3.9