fix: fix workflow

This commit is contained in:
IgorVolochay
2025-03-08 21:44:06 +03:00
parent 90939d2634
commit b58ed47247
2 changed files with 7 additions and 8 deletions
+6 -7
View File
@@ -13,7 +13,6 @@ on:
- main
jobs:
mypy:
runs-on: ubuntu-latest
@@ -38,6 +37,11 @@ jobs:
pytest:
runs-on: ubuntu-latest
env:
MONGO_HOST: ${{ secrets.MONGO_HOST }}
MONGO_PORT: ${{ secrets.MONGO_PORT }}
MONGO_USER: ${{ secrets.MONGO_USER }}
MONGO_PASS: ${{ secrets.MONGO_PASS }}
steps:
- name: Checkout
uses: actions/checkout@v3
@@ -49,12 +53,7 @@ jobs:
architecture: x64
- name: Setup MongoDB
env:
MONGO_HOST: ${{ env.MONGO_HOST }}
MONGO_PORT: ${{ env.MONGO_PORT }}
MONGO_USER: ${{ env.MONGO_USER }}
MONGO_PASS: ${{ env.MONGO_PASS }}
run: docker run --name mongodb -d -p $MONGO_PORT:27017 -e MONGO_INITDB_ROOT_USERNAME=$MONGO_USER -e MONGO_INITDB_ROOT_PASSWORD=$MONGO_PASS mongodb/mongodb-community-server
run: docker run --name mongodb -d -p ${{ secrets.MONGO_PORT }}:27017 -e MONGO_INITDB_ROOT_USERNAME=${{ secrets.MONGO_USER }} -e MONGO_INITDB_ROOT_PASSWORD=${{ secrets.MONGO_PASS }} mongodb/mongodb-community-server
- name: Install dependencies
run: |