diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 069dcb698827..c78cad017385 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -56,6 +56,13 @@ jobs: # mongo-version: "4.4" steps: + - name: deleting python 3.8 & installing python 3.11 + run: | + sudo apt-get -y purge python3.8 && \ + sudo apt-get -y autoremove && \ + sudo add-apt-repository ppa:deadsnakes/ppa -y && \ + sudo apt-get install python3.11 python3.11-dev python3.11-distutils -y + - name: install mongo version run: | if [[ "${{ matrix.mongo-version }}" != "4.4" ]]; then @@ -74,7 +81,6 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - cache: 'pip' - name: checkout repo uses: actions/checkout@v3 diff --git a/.github/workflows/verify-gha-unit-tests-count.yml b/.github/workflows/verify-gha-unit-tests-count.yml index 22568017e93f..2b7dc2d04fae 100644 --- a/.github/workflows/verify-gha-unit-tests-count.yml +++ b/.github/workflows/verify-gha-unit-tests-count.yml @@ -11,11 +11,17 @@ 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: deleting python 3.8 & installing python 3.11 + run: | + sudo apt-get -y purge python3.8 && \ + sudo apt-get -y autoremove && \ + sudo add-apt-repository ppa:deadsnakes/ppa -y && \ + sudo apt-get install python3.11 python3.11-dev python3.11-distutils -y + - name: Setup Python uses: actions/setup-python@v4 with: python-version: '3.11' - cache: 'pip' - uses: actions/checkout@v2 - name: install requirements