From 36640e50283157e5907e65ebd943771ee97a10f5 Mon Sep 17 00:00:00 2001 From: Irtaza Akram Date: Tue, 21 May 2024 17:03:02 +0500 Subject: [PATCH] fix: version test --- .github/workflows/unit-tests.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index f902525cc167..deffc2db4fed 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -71,9 +71,11 @@ jobs: - name: install system requirements run: | make ubuntu-requirements + pip --version - name: install mongo version run: | + pip --version if [[ "${{ matrix.mongo-version }}" != "4.4" ]]; then wget -qO - https://www.mongodb.org/static/pgp/server-${{ matrix.mongo-version }}.asc | sudo apt-key add - echo "deb https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/${{ matrix.mongo-version }} multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-${{ matrix.mongo-version }}.list @@ -82,15 +84,14 @@ jobs: - name: start mongod server for tests run: | + pip --version sudo mkdir -p /data/db sudo chmod -R a+rw /data/db mongod & - - name: Install pip - run: python -m pip install -r requirements/pip.txt - - name: install requirements run: | + pip --version sudo make test-requirements if [[ "${{ matrix.django-version }}" != "pinned" ]]; then sudo pip install "django~=${{ matrix.django-version }}.0"