Skip to content

Commit ea1fbcd

Browse files
committed
ci: stop populating pip cache in a pre-requisite test job
1 parent 8a28264 commit ea1fbcd

File tree

1 file changed

+0
-46
lines changed

1 file changed

+0
-46
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -39,47 +39,7 @@ env:
3939
GIT_AUTHOR_NAME: CI User
4040

4141
jobs:
42-
populate-pip-cache:
43-
runs-on: ubuntu-22.04
44-
45-
strategy:
46-
fail-fast: false
47-
matrix:
48-
python_version: ["3.9"]
49-
50-
steps:
51-
- uses: actions/checkout@v3
52-
- uses: actions/setup-python@v4
53-
with:
54-
python-version: "${{ matrix.python_version }}"
55-
56-
# There will almost never be a cache hit on the cache key when this job is
57-
# run, as it is the first of all jobs in this workflow. The subsequent
58-
# jobs in this workflow can rely on this cache though.
59-
- name: Save pip's install cache on job completion
60-
uses: actions/cache@v3
61-
with:
62-
path: ~/.cache/pip
63-
key: "${{ github.run_id }}-${{ matrix.python_version }}"
64-
65-
- name: Install dependencies
66-
run: |
67-
pip install -r dev-requirements.txt
68-
69-
# add for mercurial tests
70-
pip install mercurial hg-evolve
71-
72-
pip freeze
73-
74-
- name: Install repo2docker
75-
run: |
76-
python -m build --wheel .
77-
pip install dist/*.whl
78-
79-
pip freeze
80-
8142
test:
82-
needs: populate-pip-cache
8343
runs-on: ubuntu-${{ matrix.ubuntu_version }}
8444

8545
strategy:
@@ -112,12 +72,6 @@ jobs:
11272
with:
11373
python-version: "${{ matrix.python_version }}"
11474

115-
- name: Restore pip's install cache from previous job
116-
uses: actions/cache@v3
117-
with:
118-
path: ~/.cache/pip
119-
key: "${{ github.run_id }}-${{ matrix.python_version }}"
120-
12175
- name: Install dependencies
12276
run: |
12377
pip install -r dev-requirements.txt

0 commit comments

Comments
 (0)