Commit 94cbd489 authored by Karagkounis Dimitris's avatar Karagkounis Dimitris
Browse files

add mongo service in github actions

parent 66e9937d
Loading
Loading
Loading
Loading
+12 −0
Original line number Original line Diff line number Diff line
@@ -12,6 +12,16 @@ on:
jobs:
jobs:
  test:
  test:
    runs-on: ubuntu-latest
    runs-on: ubuntu-latest

    services:
      mongodb:
        image: mongo:6.0
        env:
          MONGO_INITDB_ROOT_USERNAME: test_admin
          MONGO_INITDB_ROOT_PASSWORD: test_password
        ports:
          - 27017:27017

    timeout-minutes: 10
    timeout-minutes: 10
    strategy:
    strategy:
      matrix:
      matrix:
@@ -30,4 +40,6 @@ jobs:
        run: pip install tox
        run: pip install tox


      - name: Run tox for python 3.12 - tests only
      - name: Run tox for python 3.12 - tests only
        env:
          MONGO_URI: "mongodb://test_admin:test_password@localhost:27017/test_db?authSource=admin"
        run: tox -e 3.12
        run: tox -e 3.12