Skip to content

Commit

Permalink
stop redundant workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
soumeh01 committed Apr 9, 2024
1 parent 73ea431 commit 80dc492
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 13 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/robot-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ concurrency:

jobs:

validate:
robot-tests:
runs-on: ubuntu-latest
env:
CMSIS_PACK_ROOT: /home/runner/.cache/arm/packs
Expand Down Expand Up @@ -42,41 +42,47 @@ jobs:
path: /home/runner/.vcpkg

- name: Prepare vcpkg env
working-directory: ./e2e-validation
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: ./e2e-validation
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: |
python -m robot --outputdir results testcases/functional_tests
. /home/runner/.vcpkg/vcpkg-init
vcpkg activate
python -m robot --outputdir reports src/test.robot
- name: Run Test and create report
run: python -m robot -d reports -x junit-report.xml "testcases/functional_tests"
# - name: Run Test and create report
# working-directory: ./test
# run: |
# python -m robot -d reports -x junit-report.xml "src/test.robot"

- name: Run Robot Framework tests and generate report
if: always()
run: |
echo "ROBOT_RC=$?" >> "$GITHUB_ENV"
echo "ROBOT_RC=$?" >> "$GITHUB_ENV"
- name: Publish test results
if: always()
uses: actions/upload-artifact@v4
with:
name: reports
path: results
path: ./test/reports

generate_report:
runs-on: ubuntu-latest
needs: robot-tests
steps:
- uses: actions/checkout@v4

- name: Download reports
uses: actions/download-artifact@v4
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/toolbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ on:
- '**'
- '!docs/**'
- '!README.md'
- '!test/**'
pull_request:
paths:
- '.github/workflows/toolbox.yml'
- '**'
- '!docs/**'
- '!test/**'
release:
types: [published]

Expand Down
2 changes: 1 addition & 1 deletion test/resources/utils.resource
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ Run Program
Run csolution
[Documentation] Run csolution example with specified arguments
[Arguments] ${input_file} @{args}
Run Program cbuild.exe ${input_file} @{args}
Run Program cbuild ${input_file} @{args}
3 changes: 1 addition & 2 deletions test/src/test.robot
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ ${RESOURCES} ../resources
*** Test Cases *** ${input_file} ${args}
Run MyProject example ${testDataDir}/MyProject${/}MyProject.csolution.yml --context=MyProject_CM3.Debug+CM3 -r --update-rte
Run Hello example ${testDataDir}/Hello${/}Hello.csolution.yml -r --update-rte
Run Hello example ${testDataDir}/Hello${/}Hello.csolution.yml -p -r --update-rte
*** Keywords ***
Expand Down
File renamed without changes.

0 comments on commit 80dc492

Please sign in to comment.