From f9d64c1daf08d62b0f07b28482017921cdc44a04 Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Thu, 13 Jan 2022 12:22:28 +0300 Subject: [PATCH] fix ci for pipenv --- .github/workflows/e2e-cache.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/e2e-cache.yml b/.github/workflows/e2e-cache.yml index d15c6f2b..707fba17 100644 --- a/.github/workflows/e2e-cache.yml +++ b/.github/workflows/e2e-cache.yml @@ -42,16 +42,19 @@ jobs: python-version: ['3.7', '3.8', '3.9', 'pypy-3.7-v7.3.5', 'pypy-3.7-v7.x'] steps: - uses: actions/checkout@v2 - - name: Install pipenv - run: pipx install pipenv - name: Setup Python uses: ./ with: python-version: ${{ matrix.python-version }} cache: 'pipenv' + - run: pip install --user pipenv - name: Install dependencies - run: pipenv install flake8 - + shell: pwsh + run: | + if ($IsMacOS) { + $env:PATH += ":/Users/runner/.local/bin" + } + pipenv install flake8 python-pip-dependencies-caching-path: name: Test pip (Python ${{ matrix.python-version}}, ${{ matrix.os }}) runs-on: ${{ matrix.os }} @@ -81,13 +84,17 @@ jobs: python-version: ['3.7', '3.8', '3.9', 'pypy-3.7-v7.3.5', 'pypy-3.7-v7.x'] steps: - uses: actions/checkout@v2 - - name: Install pipenv - run: pipx install pipenv - name: Setup Python uses: ./ with: python-version: ${{ matrix.python-version }} cache: 'pipenv' cache-dependency-path: '**/requirements-linux.txt' + - run: pip install --user pipenv - name: Install dependencies - run: pipenv install flake8 \ No newline at end of file + shell: pwsh + run: | + if ($IsMacOS) { + $env:PATH += ":/Users/runner/.local/bin" + } + pipenv install flake8 \ No newline at end of file