Skip to content

Commit

Permalink
Run unit tests on PRs using SimAVR.
Browse files Browse the repository at this point in the history
  • Loading branch information
adbancroft committed Oct 12, 2024
1 parent e7b34d6 commit 40d1c6e
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/sim-unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Unit Tests

on:
# Trigger the workflow on pull request
pull_request:
# Or push to non-master branch
push:
branches-ignore: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
Simulator-Unit-Test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'

- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
pip install wheel
platformio upgrade
platformio pkg update
- name: Run Simulator Unit Tests
run: |
platformio test -v -e megaatmega2560_sim_unittest

0 comments on commit 40d1c6e

Please sign in to comment.