diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index c5dba3e4ef7760a2abfb03f892f529998bba21a2..d5ba690c32cd32d989e6ab571c498c7ab27ad52f 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -15,12 +15,14 @@ jobs:
         restore-keys: |
           ${{ runner.os }}-pip-
     - name: Cache PlatformIO
-      uses: actions/cache@v2
+      uses: actions/cache@v3
       with:
         path: ~/.platformio
         key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
     - name: Set up Python
       uses: actions/setup-python@v4
+      with:
+        python-version: "3.9"
     - name: Install PlatformIO
       run: |
         python -m pip install --upgrade pip