Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7885ec3

Browse filesBrowse files
author
Vladimir Safonkin
authored
Rework pipenv caching test (actions#375)
* Rework python-pipenv-dependencies-caching test * Update Pipfile.lock hash in the tests * Rework python-pipenv-dependencies-caching-path test * Set location for pipenv test * Remove requests package from tests * Test pipenv without caching * Enable pipenv cache
1 parent 9c644ca commit 7885ec3
Copy full SHA for 7885ec3

File tree

Expand file treeCollapse file tree

6 files changed

+106
-266
lines changed
Filter options
Expand file treeCollapse file tree

6 files changed

+106
-266
lines changed

‎.github/workflows/e2e-cache.yml

Copy file name to clipboardExpand all lines: .github/workflows/e2e-cache.yml
+12-8Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
os: [ubuntu-latest, windows-latest, macos-latest]
2424
python-version: ['3.9', 'pypy-3.7-v7.x']
2525
steps:
26-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v3
2727
- name: Setup Python
2828
uses: ./
2929
with:
@@ -41,7 +41,7 @@ jobs:
4141
os: [ubuntu-latest, windows-latest, macos-latest]
4242
python-version: ['3.9', 'pypy-3.7-v7.x']
4343
steps:
44-
- uses: actions/checkout@v2
44+
- uses: actions/checkout@v3
4545
- name: Setup Python
4646
uses: ./
4747
with:
@@ -50,7 +50,9 @@ jobs:
5050
- name: Install pipenv
5151
run: pipx install pipenv
5252
- name: Install dependencies
53-
run: pipenv install numpy
53+
run: |
54+
cd __tests__/data
55+
pipenv install --verbose
5456
5557
python-poetry-dependencies-caching:
5658
name: Test poetry (Python ${{ matrix.python-version}}, ${{ matrix.os }})
@@ -61,7 +63,7 @@ jobs:
6163
os: [ubuntu-latest, windows-latest, macos-latest]
6264
python-version: ['3.9', 'pypy-3.7-v7.x']
6365
steps:
64-
- uses: actions/checkout@v2
66+
- uses: actions/checkout@v3
6567
- name: Install poetry
6668
run: pipx install poetry
6769
- name: Setup Python
@@ -83,7 +85,7 @@ jobs:
8385
os: [ubuntu-latest, windows-latest, macos-latest]
8486
python-version: ['3.9', 'pypy-3.7-v7.x']
8587
steps:
86-
- uses: actions/checkout@v2
88+
- uses: actions/checkout@v3
8789
- name: Setup Python
8890
uses: ./
8991
with:
@@ -102,14 +104,16 @@ jobs:
102104
os: [ubuntu-latest, windows-latest, macos-latest]
103105
python-version: ['3.9', 'pypy-3.7-v7.x']
104106
steps:
105-
- uses: actions/checkout@v2
107+
- uses: actions/checkout@v3
106108
- name: Setup Python
107109
uses: ./
108110
with:
109111
python-version: ${{ matrix.python-version }}
110112
cache: 'pipenv'
111-
cache-dependency-path: '**/requirements-linux.txt'
113+
cache-dependency-path: '**/pipenv-requirements.txt'
112114
- name: Install pipenv
113115
run: pipx install pipenv
114116
- name: Install dependencies
115-
run: pipenv install numpy
117+
run: |
118+
cd __tests__/data
119+
pipenv install --verbose

‎__tests__/cache-restore.test.ts

Copy file name to clipboardExpand all lines: __tests__/cache-restore.test.ts
+1-1Lines 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-
'67d817abcde9c72da0ed5b8f235647cb14638b9ff9d742b42e4406d2eb16fe3c';
8+
'd1dd6218299d8a6db5fc2001d988b34a8b31f1e9d0bb4534d377dde7c19f64b3';
99
const requirementsHash =
1010
'd8110e0006d7fb5ee76365d565eef9d37df1d11598b912d3eb66d398d57a1121';
1111
const requirementsLinuxHash =

‎__tests__/cache-save.test.ts

Copy file name to clipboardExpand all lines: __tests__/cache-save.test.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {State} from '../src/cache-distributions/cache-distributor';
66

77
describe('run', () => {
88
const pipFileLockHash =
9-
'67d817abcde9c72da0ed5b8f235647cb14638b9ff9d742b42e4406d2eb16fe3c';
9+
'd1dd6218299d8a6db5fc2001d988b34a8b31f1e9d0bb4534d377dde7c19f64b3';
1010
const requirementsHash =
1111
'd8110e0006d7fb5ee76365d565eef9d37df1d11598b912d3eb66d398d57a1121';
1212
const requirementsLinuxHash =

‎__tests__/data/Pipfile

Copy file name to clipboard
+13Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[[source]]
2+
url = "https://pypi.org/simple"
3+
verify_ssl = true
4+
name = "pypi"
5+
6+
[packages]
7+
numpy = "1.22.3"
8+
pandas = "1.4.2"
9+
10+
[dev-packages]
11+
12+
[requires]
13+
python_version = "*"

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.