Skip to content

Commit

Permalink
fixed issues with Python version on CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hpsaturn committed Jan 18, 2025
1 parent 0400dca commit 6f57d13
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 19 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/platformio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,23 @@ on:

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
Expand All @@ -34,12 +40,7 @@ jobs:
- name: Basic Arduino IDE example test
run: |
cd examples/advanced_sensirion
pio run
- name: PlatformIO registry backward (M5CoreInk project)
run: |
git clone https://github.com/hpsaturn/co2_m5coreink.git
cd co2_m5coreink
pio run
pio run
- name: PlatformIO registry lastest (M5Atom project)
run: |
cd examples/m5atom
Expand Down
19 changes: 12 additions & 7 deletions .github/workflows/schedule.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
name: Schedule


on:
schedule:
- cron: '30 10 * * 3'

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
Expand Down

0 comments on commit 6f57d13

Please sign in to comment.