speeduino/.github/workflows/unit-tests.yml

41 lines
989 B
YAML
Raw Normal View History

2021-08-20 05:52:10 -07:00
# This is a basic workflow to help you get started with Actions
name: Unit Tests
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
2021-08-20 06:40:23 -07:00
with:
python-version: '3.7'
2021-08-20 05:52:10 -07:00
- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
2021-08-20 06:13:50 -07:00
pip install wheel
2021-08-20 06:01:53 -07:00
platformio update
platformio platform update
2021-08-20 05:52:10 -07:00
- name: Run Unit Tests
env:
PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_AUTH_TOKEN }}
2021-08-20 06:01:53 -07:00
run: |
platformio run -e megaatmega2560
platformio remote test --force-remote --environment megaatmega2560