From ec19483deadd77fd22c774ce8a771f466603db4c Mon Sep 17 00:00:00 2001 From: Irtaza Akram Date: Tue, 21 May 2024 11:04:19 +0500 Subject: [PATCH] fix: tests --- .github/workflows/unit-tests.yml | 12 +++--------- .github/workflows/verify-gha-unit-tests-count.yml | 12 +++--------- 2 files changed, 6 insertions(+), 18 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 8fb7f9e41fc9..563264771a3e 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -56,15 +56,6 @@ jobs: # mongo-version: "4.4" steps: - - name: install system requirements - run: | - sudo apt-get update && \ - sudo apt remove 'python-*' -y && \ - 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-pip python3-venv \ - && sudo rm -rf /var/lib/apt/lists/* - - name: install mongo version run: | if [[ "${{ matrix.mongo-version }}" != "4.4" ]]; then @@ -89,6 +80,9 @@ jobs: - name: install requirements run: | + sudo apt-get remove python3-blinker python3-commandnotfound python3-entrypoints + python3-pexpect python3-pyasn1-modules + python3-systemd -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 739120d9b47b..df1ff66b25c5 100644 --- a/.github/workflows/verify-gha-unit-tests-count.yml +++ b/.github/workflows/verify-gha-unit-tests-count.yml @@ -11,15 +11,6 @@ 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 remove 'python-*' -y && \ - 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-pip python3-venv \ - && sudo rm -rf /var/lib/apt/lists/* - - name: Setup Python uses: actions/setup-python@v4 with: @@ -28,6 +19,9 @@ jobs: - uses: actions/checkout@v2 - name: install requirements run: | + sudo apt-get remove python3-blinker python3-commandnotfound python3-entrypoints + python3-pexpect python3-pyasn1-modules + python3-systemd -y sudo make test-requirements - name: verify unit tests count