Skip to content

Unit tests, docs

Unit tests, docs #27

Workflow file for this run

name: Unit Tests
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events
push:
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache pip
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Cache PlatformIO
uses: actions/cache@v4
with:
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- name: Set up Python
uses: actions/setup-python@v5
- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
- name: Run Unit Tests
run: |
pio test -v -e megaatmega2560-Os-sim -e megaatmega2560-O3-sim
env:
PLATFORMIO_BUILD_FLAGS: -D EXTENDED_TEST_LEVEL=111
- name: Run Unit Tests Small Text
run: |
pio test -v -e megaatmega2560-Os-sim -e megaatmega2560-O3-sim
env:
PLATFORMIO_BUILD_FLAGS: -D AFD_SMALL_TEXT