diff --git a/.github/workflows/platformio.yml b/.github/workflows/platformio.yml index 3ba1e533..612f7ce8 100644 --- a/.github/workflows/platformio.yml +++ b/.github/workflows/platformio.yml @@ -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 @@ -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 diff --git a/.github/workflows/schedule.yml b/.github/workflows/schedule.yml index d33c5a53..69a4216a 100644 --- a/.github/workflows/schedule.yml +++ b/.github/workflows/schedule.yml @@ -1,5 +1,4 @@ name: Schedule - on: schedule: @@ -7,17 +6,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