From c0e26b93cc2b6bf8deaccdca61b372207a54a554 Mon Sep 17 00:00:00 2001 From: Jedrzej Kosinski Date: Thu, 29 Jan 2026 17:33:21 -0800 Subject: [PATCH] Added test-assets.yml to github workflows, added a requirements.txt to test-assets (blake3 can eventually be removed from there when it becomes a core dependency) --- .github/workflows/test-assets.yml | 30 ++++++++++++++++++++++++++++++ tests-assets/requirements.txt | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 .github/workflows/test-assets.yml create mode 100644 tests-assets/requirements.txt diff --git a/.github/workflows/test-assets.yml b/.github/workflows/test-assets.yml new file mode 100644 index 000000000..babecff0b --- /dev/null +++ b/.github/workflows/test-assets.yml @@ -0,0 +1,30 @@ +name: Assets Tests + +on: + push: + branches: [ main, master, release/** ] + pull_request: + branches: [ main, master, release/** ] + +jobs: + test: + strategy: + matrix: + os: [ubuntu-latest, windows-2022, macos-latest] + runs-on: ${{ matrix.os }} + continue-on-error: true + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.12' + - name: Install requirements + run: | + python -m pip install --upgrade pip + pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu + pip install -r requirements.txt + - name: Run Assets Tests + run: | + pip install -r tests-assets/requirements.txt + python -m pytest tests-assets -v diff --git a/tests-assets/requirements.txt b/tests-assets/requirements.txt new file mode 100644 index 000000000..37729afc3 --- /dev/null +++ b/tests-assets/requirements.txt @@ -0,0 +1,2 @@ +pytest>=7.8.0 +blake3