Skip to content

Commit 766e8c6

Browse files
Fixing pipenv CI (actions#444)
* work on fixing pipenv * change installation of pipenv to curl * add different logs * regenerate pipefile.lock * change pipenv ci
1 parent 00a5248 commit 766e8c6

File tree

5 files changed

+59
-74
lines changed

5 files changed

+59
-74
lines changed

.github/workflows/e2e-cache.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,12 @@ jobs:
4848
python-version: ${{ matrix.python-version }}
4949
cache: 'pipenv'
5050
- name: Install pipenv
51-
run: pipx install pipenv
51+
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
5252
- name: Install dependencies
5353
run: |
54-
cd __tests__/data
55-
pipenv install --verbose
54+
mv ./__tests__/data/Pipfile.lock .
55+
mv ./__tests__/data/Pipfile .
56+
pipenv install --keep-outdated
5657
5758
python-poetry-dependencies-caching:
5859
name: Test poetry (Python ${{ matrix.python-version}}, ${{ matrix.os }})
@@ -112,8 +113,9 @@ jobs:
112113
cache: 'pipenv'
113114
cache-dependency-path: '**/pipenv-requirements.txt'
114115
- name: Install pipenv
115-
run: pipx install pipenv
116+
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
116117
- name: Install dependencies
117118
run: |
118-
cd __tests__/data
119-
pipenv install --verbose
119+
mv ./__tests__/data/Pipfile.lock .
120+
mv ./__tests__/data/Pipfile .
121+
pipenv install --keep-outdated

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,12 +269,12 @@ steps:
269269
```yaml
270270
steps:
271271
- uses: actions/checkout@v3
272-
- name: Install pipenv
273-
run: pipx install pipenv
274272
- uses: actions/setup-python@v4
275273
with:
276274
python-version: '3.9'
277275
cache: 'pipenv'
276+
- name: Install pipenv
277+
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
278278
- run: pipenv install
279279
```
280280
@@ -308,15 +308,15 @@ steps:
308308
```yaml
309309
steps:
310310
- uses: actions/checkout@v3
311-
- name: Install pipenv
312-
run: pipx install pipenv
313311
- uses: actions/setup-python@v4
314312
with:
315313
python-version: '3.9'
316314
cache: 'pipenv'
317315
cache-dependency-path: |
318316
server/app/Pipfile.lock
319317
__test__/app/Pipfile.lock
318+
- name: Install pipenv
319+
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
320320
- run: pipenv install
321321
```
322322

__tests__/cache-restore.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {getCacheDistributor} from '../src/cache-distributions/cache-factory';
55

66
describe('restore-cache', () => {
77
const pipFileLockHash =
8-
'd1dd6218299d8a6db5fc2001d988b34a8b31f1e9d0bb4534d377dde7c19f64b3';
8+
'a3bdcc71289e4979ca9e051810d81999cc99823109faf6912e17ff14c8e621a6';
99
const requirementsHash =
1010
'd8110e0006d7fb5ee76365d565eef9d37df1d11598b912d3eb66d398d57a1121';
1111
const requirementsLinuxHash =

__tests__/data/Pipfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ verify_ssl = true
44
name = "pypi"
55

66
[packages]
7-
numpy = "1.22.3"
8-
pandas = "1.4.2"
7+
flake8 = "==4.0.1"
8+
numpy = "==1.23.0"
99

1010
[dev-packages]
1111

__tests__/data/Pipfile.lock

Lines changed: 44 additions & 61 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)