Commit 16a31355 authored by Anas Nashif's avatar Anas Nashif
Browse files

ci: twister/tests: install pinned pip packages

Install packages from scripts/requirements-actions.txt.

Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
parent a4f72e82
Loading
Loading
Loading
Loading
+7 −10
Changes for .github/workflows/twister_tests.yml: 7 added lines, 10 removed lines.
Original line number Diff line number Diff line
@@ -37,21 +37,18 @@ jobs:
    steps:
    - name: checkout
      uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
      with:
        python-version: ${{ matrix.python-version }}
    - name: cache-pip-linux
      if: startsWith(runner.os, 'Linux')
      uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
      with:
        path: ~/.cache/pip
        key: ${{ runner.os }}-pip-${{ matrix.python-version }}
        restore-keys: |
          ${{ runner.os }}-pip-${{ matrix.python-version }}
    - name: install-packages
        cache: pip
        cache-dependency-path: scripts/requirements-actions.txt

    - name: Install Python packages
      run: |
        pip3 install -r scripts/requirements-base.txt -r scripts/requirements-build-test.txt -r scripts/requirements-run-test.txt
        pip install -r scripts/requirements-actions.txt --require-hashes

    - name: Run pytest for twisterlib
      env:
        ZEPHYR_BASE: ./