kopia lustrzana https://github.com/jupyterhub/repo2docker
ci: fix pip cache issue caused by mixing python versions
rodzic
77c8ef4adb
commit
f3b0e18c0b
|
@ -41,11 +41,17 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
pre-commit:
|
pre-commit:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
python_version: ["3.9"]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: "3.9"
|
python-version: "${{ matrix.python_version }}"
|
||||||
|
|
||||||
# There will almost never be a cache hit on the cache key when this job is
|
# There will almost never be a cache hit on the cache key when this job is
|
||||||
# run, as it is the first of all jobs in this workflow. The subsequent
|
# run, as it is the first of all jobs in this workflow. The subsequent
|
||||||
|
@ -54,7 +60,7 @@ jobs:
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/pip
|
path: ~/.cache/pip
|
||||||
key: "${{ github.run_id }}"
|
key: "${{ github.run_id }}-${{ matrix.python_version }}"
|
||||||
|
|
||||||
- name: "Install dependencies"
|
- name: "Install dependencies"
|
||||||
run: |
|
run: |
|
||||||
|
@ -69,7 +75,7 @@ jobs:
|
||||||
runs-on: ubuntu-${{ matrix.ubuntu_version }}"
|
runs-on: ubuntu-${{ matrix.ubuntu_version }}"
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false # Do not cancel all jobs if one fails
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
ubuntu_version: ["22.04"]
|
ubuntu_version: ["22.04"]
|
||||||
python_version: ["3.9"]
|
python_version: ["3.9"]
|
||||||
|
@ -102,7 +108,7 @@ jobs:
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/pip
|
path: ~/.cache/pip
|
||||||
key: "${{ github.run_id }}"
|
key: "${{ github.run_id }}-${{ matrix.python_version }}"
|
||||||
|
|
||||||
- name: "Install"
|
- name: "Install"
|
||||||
run: |
|
run: |
|
||||||
|
|
Ładowanie…
Reference in New Issue