Skip to content

Commit

Permalink
trial
Browse files Browse the repository at this point in the history
  • Loading branch information
soumeh01 committed Apr 15, 2024
1 parent a78894c commit 335f8eb
Showing 1 changed file with 13 additions and 22 deletions.
35 changes: 13 additions & 22 deletions .github/workflows/robot-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,20 @@ concurrency:

jobs:
test:
runs-on: ubuntu-latest
env:
CMSIS_PACK_ROOT: /home/runner/.cache/arm/packs

runs-on: ${{ matrix.os }}
name: 'Robot Tests (${{ matrix.os }})'
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
vcpkg-version: ['2022.01']
steps:
- uses: actions/checkout@v4
- name: Checkout Repository
uses: actions/checkout@v4

- name: Install vcpkg
run: |
git clone https://github.com/microsoft/vcpkg.git
./vcpkg/bootstrap-vcpkg.sh
- name: Set up Python
uses: actions/setup-python@v5
Expand All @@ -32,32 +40,15 @@ jobs:
pip install --upgrade pip
pip install -r test/configs/requirements.txt
- name: Cache vcpkg
uses: actions/cache@v4
with:
key: vcpkg-${{ runner.os }}-${{ runner.arch }}-${{ github.run_id }}
restore-keys: |
vcpkg-${{ runner.os }}-${{ runner.arch }}-
path: /home/runner/.vcpkg

- name: Prepare vcpkg env
working-directory: ./test
run: |
. <(curl https://aka.ms/vcpkg-init.sh -L)
vcpkg x-update-registry --all
vcpkg activate
- name: Activate Arm tool license
working-directory: ./test
run: |
. /home/runner/.vcpkg/vcpkg-init
vcpkg activate
armlm activate --server https://mdk-preview.keil.arm.com --product KEMDK-COM0
- name: Run Test
working-directory: ./test
run: |
. /home/runner/.vcpkg/vcpkg-init
vcpkg activate
python -m robot --outputdir ../reports -x junit-report.xml src/test.robot
Expand Down

0 comments on commit 335f8eb

Please sign in to comment.