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