Skip to content

Commit

Permalink
fix: add env
Browse files Browse the repository at this point in the history
  • Loading branch information
irtazaakram committed May 21, 2024
1 parent aff2b36 commit 0aea248
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,8 @@ jobs:

- name: install requirements
run: |
sudo update-alternatives --install /usr/bin/python python ${{ env.pythonLocation }} 1
sudo update-alternatives --config python
sudo update-alternatives --set python ${{ env.pythonLocation }}
sudo apt-get remove python3-blinker python3-commandnotfound python3-entrypoints \
python3-parted python3-pexpect python3-pyasn1-modules \
python3-systemd ufw -y
python -m venv env
source env/bin/activate
sudo make test-requirements
if [[ "${{ matrix.django-version }}" != "pinned" ]]; then
sudo pip install "django~=${{ matrix.django-version }}.0"
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/verify-gha-unit-tests-count.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ jobs:
- uses: actions/checkout@v2
- name: install requirements
run: |
sudo update-alternatives --install /usr/bin/python python ${{ env.pythonLocation }} 1
sudo update-alternatives --config python
sudo update-alternatives --set python ${{ env.pythonLocation }}
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 0aea248

Please sign in to comment.