Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
irtazaakram committed May 21, 2024
1 parent 0aea248 commit 78358e0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/verify-gha-unit-tests-count.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 78358e0

Please sign in to comment.