chore: Fix deprecated unittest aliases for Python 3.11 compatibility. (#17562)

* chore: Fix deprecated unittest aliases for Python 3.11 compatibility.

* chore: Cache pip dependencies.

* chore: Cache more pip dependencies.
This commit is contained in:
Karthikeyan Singaravelan
2021-11-26 21:51:01 +05:30
committed by GitHub
parent ebb34196f2
commit 11cf15f8dc
7 changed files with 31 additions and 4 deletions

View File

@@ -35,6 +35,8 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: 'requirements/testing.txt'
# TODO: separated requiermentes.txt file just for unit tests
- name: Install dependencies
if: steps.check.outcome == 'failure'
@@ -43,6 +45,7 @@ jobs:
run: |
apt-get-install
pip-upgrade
pip install wheel
pip install -r requirements/testing.txt
mkdir ${{ github.workspace }}/.temp
- name: Python unit tests