Skip to content

Move test support to root of model_signing. (#252) #17

Move test support to root of model_signing. (#252)

Move test support to root of model_signing. (#252) #17

Workflow file for this run

name: Validate all Python dependencies work together
on:
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, synchronize]
paths-ignore:
- '**/*.md'
- '*.md'
permissions: {}
defaults:
run:
shell: bash
jobs:
model-signing:
name: Test model signing dependencies
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false # Don't cancel other jobs if one fails
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- os: macos-latest
os_family: Darwin
- os: ubuntu-latest
os_family: Linux
- os: windows-latest
os_family: Windows
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
with:
python-version: 3.11
cache: pip
cache-dependency-path: model_signing/install/requirements_${{ matrix.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_${{ matrix.os_family }}.txt
slsa-for-ml:
name: Test SLSA for ML demo dependencies
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false # Don't cancel other jobs if one fails
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- os: macos-latest
os_family: Darwin
- os: ubuntu-latest
os_family: Linux
- os: windows-latest
os_family: Windows
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
with:
python-version: 3.11
cache: pip
cache-dependency-path: slsa_for_models/install/requirements_${{ matrix.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_${{ matrix.os_family }}.txt