From 9557a2da45985c337d391a8ae5e6ba53700d2e45 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Fri, 11 Oct 2024 09:01:51 +1300 Subject: [PATCH] CI: fix Python checks (#23801) Now that ubuntu-latest has been pushed to Ubuntu 24.04, we need to fix up the pip install. While at it, we might as well pin to the ubuntu 24.04 version, so we don't have this happen to use out of the blue again. --- .github/workflows/python_checks.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python_checks.yml b/.github/workflows/python_checks.yml index 1d9cda083e..9503fc99eb 100644 --- a/.github/workflows/python_checks.yml +++ b/.github/workflows/python_checks.yml @@ -10,7 +10,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v1 with: @@ -18,7 +18,7 @@ jobs: - name: Install Python3 run: sudo apt-get install python3 python3-setuptools python3-pip -y - name: Install tools - run: pip3 install --user mypy types-requests flake8 + run: python3 -m pip install mypy types-requests flake8 --break-system-packages - name: Check MAVSDK test scripts with mypy run: $HOME/.local/bin/mypy --strict test/mavsdk_tests/*.py - name: Check MAVSDK test scripts with flake8