| # Copyright 2023 Google LLC |
| # SPDX-License-Identifier: Apache-2.0 |
| - '.github/workflows/scripts_tests.yml' |
| - '.github/workflows/scripts_tests.yml' |
| runs-on: ${{ matrix.os }} |
| python-version: [3.8, 3.9, '3.10'] |
| uses: actions/checkout@v3 |
| ref: ${{ github.event.pull_request.head.sha }} |
| BASE_REF: ${{ github.base_ref }} |
| PR_HEAD: ${{ github.event.pull_request.head.sha }} |
| git config --global user.email "actions@zephyrproject.org" |
| git config --global user.name "Github Actions" |
| git rebase origin/${BASE_REF} |
| git log --graph --oneline HEAD...${PR_HEAD} |
| - name: Set up Python ${{ matrix.python-version }} |
| uses: actions/setup-python@v4 |
| python-version: ${{ matrix.python-version }} |
| if: startsWith(runner.os, 'Linux') |
| key: ${{ runner.os }}-pip-${{ matrix.python-version }} |
| ${{ runner.os }}-pip-${{ matrix.python-version }} |
| pip3 install -r scripts/requirements-base.txt -r scripts/requirements-build-test.txt |