Skip to content

Commit

Permalink
Use actions/cache for tox environment
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverholworthy committed Jul 3, 2023
1 parent fbb2e40 commit 90cff0a
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ concurrency:
jobs:
gpu-ci:
runs-on: linux-amd64-gpu-p100-latest-1
strategy:
matrix:
image: ["nvcr.io/nvidia/tensorflow:23.06-tf2-py3"]
container:
image: nvcr.io/nvidia/tensorflow:23.06-tf2-py3
image: ${{ matrix.image }}
env:
NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }}
steps:
Expand All @@ -31,6 +34,10 @@ jobs:
- name: Install and upgrade python packages
run: |
python -m pip install --upgrade pip tox
- uses: actions/cache@v3
with:
path: .tox
key: tox-${{ matrix.image }}-${{ hashFiles('requirements/*.txt') }}
- name: Get Branch name
id: get-branch-name
uses: NVIDIA-Merlin/.github/actions/branch-name@6f0539fba24f60da2aee63c5925bee7cee3206e3
Expand Down Expand Up @@ -63,7 +70,10 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: 3.8
cache: "pip"
- uses: actions/cache@v3
with:
path: .tox
key: tox-${{ steps.setup_python.outputs.python-version }}-${{ hashFiles('requirements/*.txt') }}

Check failure on line 76 in .github/workflows/gpu.yml

View workflow job for this annotation

GitHub Actions / actionlint

property "setup_python" is not defined in object type {}
- name: Install and upgrade python packages
run: |
python -m pip install --upgrade pip tox
Expand Down Expand Up @@ -99,7 +109,10 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: 3.8
cache: "pip"
- uses: actions/cache@v3
with:
path: .tox
key: tox-${{ steps.setup_python.outputs.python-version }}-${{ hashFiles('requirements/*.txt') }}

Check failure on line 115 in .github/workflows/gpu.yml

View workflow job for this annotation

GitHub Actions / actionlint

property "setup_python" is not defined in object type {}
- name: Install and upgrade python packages
run: |
python -m pip install --upgrade pip tox
Expand Down

0 comments on commit 90cff0a

Please sign in to comment.