Skip to content

torchcodec for linux to use the latest datasets #5185

torchcodec for linux to use the latest datasets

torchcodec for linux to use the latest datasets #5185

Workflow file for this run

name: SDL tests
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
- 'releases/**'
permissions: read-all
concurrency:
# github.ref is not unique in post-commit
group: ${{ github.event_name == 'push' && github.run_id || github.ref }}-linux-sdl
cancel-in-progress: true
env:
PYTHON_VERSION: '3.11'
jobs:
sdl_tests:
name: SDL tests
timeout-minutes: 10
defaults:
run:
shell: bash
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Clone sources and tests
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Setup Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: 'pip'
- name: Install Python tests dependencies
run: |
python3 -m pip install flake8 pytest black bandit
- name: Lint with flake8 (WWB)
run: |
# stop the build if there are Python syntax errors or undefined names
python -m flake8 . --config=./setup.cfg
working-directory: ${{ github.workspace }}/tools/who_what_benchmark
- name: Lint with flake8 (LLM)
run: |
# stop the build if there are Python syntax errors or undefined names
python -m flake8 . --config=./setup.cfg
working-directory: ${{ github.workspace }}/tools/llm_bench
- name: Bandit tests
run: python -m bandit --recursive --configfile bandit.yml .
- name: Run Trivy vulnerability scanner in fs mode
uses: aquasecurity/trivy-action@f9424c10c36e288d5fa79bd3dfd1aeb2d6eae808 # v0.33.0
with:
scan-type: 'fs'
scan-ref: '.'
- name: Dependency Review
if: ${{ github.event_name == 'pull_request' }}
uses: actions/dependency-review-action@595b5aeba73380359d98a5e087f648dbb0edce1b # v4.7.3
with:
config-file: './.github/dependency_review.yml'