From 2c5aeb54131ade36f2cef8c32a046cd549641860 Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Sat, 2 Apr 2022 23:22:19 +0200 Subject: [PATCH] fix pipenv checks --- .github/workflows/e2e-cache.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e-cache.yml b/.github/workflows/e2e-cache.yml index fc4a08dae..f010a1a8c 100644 --- a/.github/workflows/e2e-cache.yml +++ b/.github/workflows/e2e-cache.yml @@ -48,7 +48,11 @@ jobs: python-version: ${{ matrix.python-version }} cache: 'pipenv' - name: Install pipenv - run: pipx install pipenv + shell: pwsh + run: | + pipx install pipenv + $pythonVersion = ("${{ matrix.python-version }}" -Match "pypy") ? "pypy" : "${{ matrix.python-version }}" + pipenv --python $pythonVersion - name: Install dependencies run: pipenv install numpy @@ -110,6 +114,9 @@ jobs: cache: 'pipenv' cache-dependency-path: '**/requirements-linux.txt' - name: Install pipenv - run: pipx install pipenv + run: | + pipx install pipenv + $pythonVersion = ("${{ matrix.python-version }}" -Match "pypy") ? "pypy" : "${{ matrix.python-version }}" + pipenv --python $pythonVersion - name: Install dependencies run: pipenv install numpy \ No newline at end of file