From 78358e0a340c88ef150555e58d36e32814d08e21 Mon Sep 17 00:00:00 2001 From: Irtaza Akram Date: Tue, 21 May 2024 12:45:17 +0500 Subject: [PATCH] fix: test --- .github/workflows/unit-tests.yml | 13 +++++++++++-- .github/workflows/verify-gha-unit-tests-count.yml | 10 ++++++++-- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 4299164673fd..c89e1c920335 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -56,6 +56,14 @@ jobs: # mongo-version: "4.4" steps: + - name: install system requirements + run: | + sudo apt-get update && \ + sudo apt-get install --yes \ + build-essential git language-pack-en libmysqlclient-dev libssl-dev libxml2-dev \ + libxmlsec1-dev libxslt1-dev lynx xvfb pkg-config python3-dev python3-venv && \ + sudo rm -rf /var/lib/apt/lists/* + - name: install mongo version run: | if [[ "${{ matrix.mongo-version }}" != "4.4" ]]; then @@ -80,8 +88,9 @@ jobs: - name: install requirements run: | - python -m venv env - source env/bin/activate + sudo apt-get remove python3-blinker python3-commandnotfound python3-entrypoints \ + python3-parted python3-pexpect python3-pyasn1-modules \ + python3-systemd ufw -y sudo make test-requirements if [[ "${{ matrix.django-version }}" != "pinned" ]]; then sudo pip install "django~=${{ matrix.django-version }}.0" diff --git a/.github/workflows/verify-gha-unit-tests-count.yml b/.github/workflows/verify-gha-unit-tests-count.yml index 41f73d6d56b2..8235b7392d6d 100644 --- a/.github/workflows/verify-gha-unit-tests-count.yml +++ b/.github/workflows/verify-gha-unit-tests-count.yml @@ -11,6 +11,14 @@ jobs: if: (github.repository == 'edx/edx-platform-private') || (github.repository == 'openedx/edx-platform' && (startsWith(github.base_ref, 'open-release') == false)) runs-on: ubuntu-20.04 steps: + - name: install system requirements + run: | + sudo apt-get update && \ + sudo apt-get install --yes \ + build-essential git language-pack-en libmysqlclient-dev libssl-dev libxml2-dev \ + libxmlsec1-dev libxslt1-dev lynx xvfb pkg-config python3-dev python3-venv && \ + sudo rm -rf /var/lib/apt/lists/* + - name: Setup Python uses: actions/setup-python@v4 with: @@ -19,8 +27,6 @@ jobs: - uses: actions/checkout@v2 - name: install requirements run: | - python -m venv env - source env/bin/activate sudo apt-get remove python3-blinker python3-commandnotfound python3-entrypoints \ python3-parted python3-pexpect python3-pyasn1-modules \ python3-systemd ufw -y