Skip to content

Commit

Permalink
Add github action for robot framework tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jonlamb-gh committed Oct 15, 2023
1 parent e659e18 commit 1ff35e4
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Integration Tests

on: [push]

env:
CARGO_TERM_COLOR: always
RENODE_CI_MODE: YES

jobs:
robo_tests:
name: Roboot Framework Tests
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Install renode
run: |
cd /opt
sudo wget --quiet --output-document renode.tar.gz https://builds.renode.io/renode-1.14.0+20231008gitebcb1b6b.linux-portable.tar.gz
sudo mkdir renode
sudo tar xf renode.tar.gz -C renode --strip-components 1
sudo pip install -r /opt/renode/tests/requirements.txt
echo "PATH=/opt/renode:${PATH}" >> $GITHUB_ENV
- name: Print renode version
run: renode --version

- name: Install toolchain and components
run: rustup component add rustfmt clippy llvm-tools-preview

- name: Install binutils, flip-link
run: cargo install cargo-binutils flip-link

- name: Build bootloader
working-directory: bootloader
run: cargo build --release

- name: Build firmware
working-directory: firmware
run: cargo build --release

- name: Build CLI
working-directory: host_tools/air-gradient-cli
run: cargo build --release --all-features

- name: Setup networking for tests
run: sudo ./renode/setup-network.sh &

- name: Run tests
run: renode-test agp.robot

0 comments on commit 1ff35e4

Please sign in to comment.