Skip to content

Commit

Permalink
adding validate deps workflow chagnes
Browse files Browse the repository at this point in the history
Signed-off-by: greg pereira <[email protected]>
  • Loading branch information
Gregory-Pereira committed May 16, 2024
1 parent f00b80a commit 81c3d93
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/validate_deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,34 @@ defaults:
jobs:
model-signing:
name: Test model signing dependencies
runs-on: ${{ matrix.os }}
runs-on: ${{ matrix.os.runner_name }}
strategy:
fail-fast: false # Don't cancel other jobs if one fails
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os:
- runner_name: ubuntu-latest
os_family: Linux
- runner_os_name: macos-latest
os_family: Darwin
- runner_name: windows-latest
os_family: Windows
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: 3.11
cache: pip
cache-dependency-path: model_signing/install/requirements_${{ runner.os }}.txt
cache-dependency-path: model_signing/install/requirements_${{ matrix.os.runner_name.os_family }}.txt
- name: Install dependencies
run: |
set -exuo pipefail
python -m venv venv
.github/workflows/scripts/venv_activate.sh
python -m pip install --require-hashes -r model_signing/install/requirements_${{ runner.os }}.txt
python -m pip install --require-hashes -r model_signing/install/requirements_${{ matrix.os.runner_name.os_family }}.txt
slsa-for-ml:
name: Test SLSA for ML demo dependencies
runs-on: ${{ matrix.os }}
runs-on: ${{ matrix.os.runner_name }}
strategy:
fail-fast: false # Don't cancel other jobs if one fails
matrix:
Expand All @@ -50,10 +56,10 @@ jobs:
with:
python-version: 3.11
cache: pip
cache-dependency-path: slsa_for_models/install/requirements_${{ runner.os }}.txt
cache-dependency-path: slsa_for_models/install/requirements_${{ matrix.os.runner_name.os_family }}.txt
- name: Install dependencies
run: |
set -exuo pipefail
python -m venv venv
.github/workflows/scripts/venv_activate.sh
python -m pip install --require-hashes -r slsa_for_models/install/requirements_${{ runner.os }}.txt
python -m pip install --require-hashes -r slsa_for_models/install/requirements_${{ matrix.os.runner_name.os_family }}.txt

0 comments on commit 81c3d93

Please sign in to comment.