Skip to content

Commit 6097f7a

Browse files
add match condition
1 parent 3310765 commit 6097f7a

File tree

1 file changed

+9
-17
lines changed

1 file changed

+9
-17
lines changed

.github/workflows/e2e-cache.yml

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,11 @@ jobs:
5252
- name: Install dependencies
5353
shell: pwsh
5454
run: |
55-
# if ("${{ matrix.python-version }}" -Match "pypy") {
56-
# pipenv install flake8 --python pypy
57-
# } else {
58-
# pipenv install flake8 --python ${{ matrix.python-version }}
59-
# }
60-
if ($IsWindows) {
61-
Remove-Item ~/.virtualenvs/* -Recurse -Force
55+
if ("${{ matrix.python-version }}" -Match "pypy") {
56+
pipenv install flake8 --python pypy
57+
} else {
58+
pipenv install flake8 --python ${{ matrix.python-version }}
6259
}
63-
pipenv install flake8
6460
python-pip-dependencies-caching-path:
6561
name: Test pip (Python ${{ matrix.python-version}}, ${{ matrix.os }})
6662
runs-on: ${{ matrix.os }}
@@ -101,12 +97,8 @@ jobs:
10197
- name: Install dependencies
10298
shell: pwsh
10399
run: |
104-
# if ("${{ matrix.python-version }}" -Match "pypy") {
105-
# pipenv install flake8 --python pypy
106-
# } else {
107-
# pipenv install flake8 --python ${{ matrix.python-version }}
108-
# }
109-
if ($IsWindows) {
110-
Remove-Item ~/.virtualenvs/* -Recurse -Force
111-
}
112-
pipenv install flake8
100+
if ("${{ matrix.python-version }}" -Match "pypy") {
101+
pipenv install flake8 --python pypy
102+
} else {
103+
pipenv install flake8 --python ${{ matrix.python-version }}
104+
}

0 commit comments

Comments
 (0)