From eadcfba1321a227581e6eb022dd5a1f9c49f794e Mon Sep 17 00:00:00 2001 From: miragecentury Date: Thu, 5 Dec 2024 23:56:59 +0100 Subject: [PATCH] ci: :ferris_wheel: add mongod --- .github/workflows/check.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 51fa12d..c65f669 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -8,9 +8,18 @@ jobs: pre-commit: env: PYTHON_PATH: "./src:./tests:$PYTHON_PATH" - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 + - name: Install MongoD + run: | + sudo apt-get install gnupg curl + curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | \ + sudo gpg -o /usr/share/keyrings/mongodb-server-8.0.gpg \ + --dearmor + echo "deb [ arch=amd64 signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] https://repo.mongodb.org/apt/ubuntu noble/mongodb-org/8.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-8.0.list + sudo apt-get update + sudo apt-get install -y mongodb-org - uses: actions/setup-python@v4 with: python-version: "3.12"