Skip to content

Commit

Permalink
Update paths to requirements files
Browse files Browse the repository at this point in the history
Signed-off-by: Mihai Maruseac <[email protected]>
  • Loading branch information
mihaimaruseac committed Aug 13, 2024
1 parent 7519647 commit f3b0acb
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ jobs:
run: |
python -m venv venv
.github/workflows/scripts/venv_activate.sh
pip install -r model_signing/install/requirements_Linux.txt
pip install -r model_signing/install/requirements_test_Linux.txt
pip install -r model_signing/install/requirements_dev_Linux.txt
pip install -r install/requirements_Linux.txt
pip install -r install/requirements_test_Linux.txt
pip install -r install/requirements_dev_Linux.txt
# TODO: https://github.com/sigstore/model-transparency/issues/231 - Support all repo
pytype --keep-going model_signing/{conftest.py,hashing,manifest,serialization,signature,signing}
Expand All @@ -82,8 +82,8 @@ jobs:
run: |
python -m venv venv
.github/workflows/scripts/venv_activate.sh
pip install -r model_signing/install/requirements_Linux.txt
pip install -r model_signing/install/requirements_test_Linux.txt
pip install -r model_signing/install/requirements_dev_Linux.txt
pip install -r install/requirements_Linux.txt
pip install -r install/requirements_test_Linux.txt
pip install -r install/requirements_dev_Linux.txt
# TODO: https://github.com/sigstore/model-transparency/issues/231 - Support all repo
ruff check model_signing/{conftest.py,hashing,manifest,serialization,signature,signing}
12 changes: 6 additions & 6 deletions .github/workflows/pin_deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ jobs:
python-version: 3.11
cache: pip
cache-dependency-path: |
model_signing/install/requirements_${{ matrix.os_family }}.txt
model_signing/install/requirements_test_${{ matrix.os_family }}.txt
model_signing/install/requirements_dev_${{ matrix.os_family }}.txt
install/requirements_${{ matrix.os_family }}.txt
install/requirements_test_${{ matrix.os_family }}.txt
install/requirements_dev_${{ matrix.os_family }}.txt
slsa_for_models/install/requirements_${{ matrix.os_family }}.txt
- name: Create an empty virtualenv and install `pip-tools`
run: |
Expand All @@ -60,15 +60,15 @@ jobs:
rm -rf venv # Need clean sandbox
python -m venv venv
.github/workflows/scripts/venv_activate.sh
pip install -r model_signing/install/requirements_${{ matrix.os_family }}.txt
pip install -r install/requirements_${{ matrix.os_family }}.txt
pip list # For debugging
- name: Test freeze file (for testing model signing)
run: |
set -exuo pipefail
rm -rf venv # Need clean sandbox
python -m venv venv
.github/workflows/scripts/venv_activate.sh
pip install -r model_signing/install/requirements_test_${{ matrix.os_family }}.txt
pip install -r install/requirements_test_${{ matrix.os_family }}.txt
pip list # For debugging
- name: Test freeze file (for dev tools model signing)
if: ${{ matrix.os_family != 'Windows' }} # pytype doesn't support Windows
Expand All @@ -77,7 +77,7 @@ jobs:
rm -rf venv # Need clean sandbox
python -m venv venv
.github/workflows/scripts/venv_activate.sh
pip install -r model_signing/install/requirements_dev_${{ matrix.os_family }}.txt
pip install -r install/requirements_dev_${{ matrix.os_family }}.txt
pip list # For debugging
- name: Test freeze file (for SLSA for models)
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ jobs:
python-version: 3.11
cache: pip
cache-dependency-path: |
model_signing/install/requirements_${{ matrix.os_family }}.txt
model_signing/install/requirements_test_${{ matrix.os_family }}.txt
install/requirements_${{ matrix.os_family }}.txt
install/requirements_test_${{ 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
python -m pip install --require-hashes -r model_signing/install/requirements_test_${{ matrix.os_family }}.txt
python -m pip install --require-hashes -r install/requirements_${{ matrix.os_family }}.txt
python -m pip install --require-hashes -r install/requirements_test_${{ matrix.os_family }}.txt
- name: Run unit tests
run: |
set -euo pipefail
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/validate_deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ jobs:
with:
python-version: 3.11
cache: pip
cache-dependency-path: model_signing/install/requirements_${{ matrix.os_family }}.txt
cache-dependency-path: 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
python -m pip install --require-hashes -r install/requirements_${{ matrix.os_family }}.txt
slsa-for-ml:
name: Test SLSA for ML demo dependencies
Expand Down

0 comments on commit f3b0acb

Please sign in to comment.