Skip to content

Commit

Permalink
fixed issues around the Python action
Browse files Browse the repository at this point in the history
  • Loading branch information
hpsaturn committed Jan 12, 2025
1 parent c484dca commit 01644ec
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 20 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/platformio.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,36 @@
name: PlatformIO

on:
push:
pull_request:
branches:
- master
paths-ignore:
- '**/README.md'

jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 1
matrix:
python-version: [3.7]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
python-version: ${{ matrix.python-version }}
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U platformio
platformio update
- name: Build test
pio pkg update
- name: PlatformIO Build Test
run: |
pio run -e TTGO_T7 -e TTGO_TDISPLAY -e ESP32C3LOLIN
26 changes: 16 additions & 10 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,37 @@
name: PlatformIO

on:
push:
pull_request:
branches:
- devel
paths-ignore:
- '**/README.md'

jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 1
matrix:
python-version: [3.7]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
python-version: ${{ matrix.python-version }}
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U platformio
platformio update
- name: Build test
pio pkg update
- name: Devel Build Test
run: |
pio run -e TTGO_T7 -e TTGO_TDISPLAY -e ESP32C3LOLIN

0 comments on commit 01644ec

Please sign in to comment.