Refactored code, unit tests added, GA activated.
This commit is contained in:
34
.gitea/workflows/pio_tests.yml
Normal file
34
.gitea/workflows/pio_tests.yml
Normal file
@ -0,0 +1,34 @@
|
||||
name: PlatformIO flow
|
||||
run-name: ${{ gitea.actor }} is testing
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '*'
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Configure caching
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/.cache/pip
|
||||
~/.platformio/.cache
|
||||
key: ${{ runner.os }}-pio
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: 'pypy3.9'
|
||||
- name: Install PlatformIO Core
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install --upgrade platformio
|
||||
- name: Run native unit tests
|
||||
run: |
|
||||
pio test
|
Reference in New Issue
Block a user