Repository: ClearcodeHQ/pytest-mongo (language: python)

Issue:
Change the way mongodb is set up
https://github.com/ankane/setup-mongodb


Discussion / hints:

Fix patch:
diff --git a/newsfragments/394.misc.rst b/newsfragments/394.misc.rst
new file mode 100644
index 0000000..b495ec3
--- /dev/null
+++ b/newsfragments/394.misc.rst
@@ -0,0 +1,1 @@
+Change the way mongo is set up on CI
\ No newline at end of file


Test patch:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 9362dc2..b746bbb 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -25,11 +25,9 @@ jobs:
       with:
         python-version: ${{ matrix.python-version }}
     - name: Install MongoDB
-      run: |
-        wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
-        echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb.list
-        sudo apt-get update -o Dir::Etc::sourcelist="/etc/apt/sources.list.d/mongodb.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
-        sudo apt-get install -y mongodb-org
+      uses: ankane/setup-mongodb@v1
+      with:
+        mongodb-version: 6.0
     - name: Run test
       uses: fizyk/actions-reuse/.github/actions/pipenv@v2.1.2
       with: