From 562f323d6925437c250aeee246f66524639126c5 Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Wed, 4 Dec 2024 14:10:21 +0000 Subject: [PATCH] CI: Fix linting. --- .github/workflows/python-linting.yml | 18 ++++++------------ ci/micropython.sh | 2 +- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/python-linting.yml b/.github/workflows/python-linting.yml index c5b5204..d03c56a 100644 --- a/.github/workflows/python-linting.yml +++ b/.github/workflows/python-linting.yml @@ -12,19 +12,13 @@ jobs: - uses: actions/checkout@v3 - name: Install Python Deps - run: python3 -m pip install flake8 - - - name: Lint MicroPython Examples - shell: bash run: | - python3 -m flake8 --show-source --ignore E501 examples/micropython + python3 -m venv .venv + source .venv/bin/activate + python -m pip install flake8 - - name: Lint Cosmic Unicorn Libs - shell: bash - run: | - python3 -m flake8 --show-source --ignore E501 firmware/PIMORONI_COSMIC_UNICORN/lib - - - name: Lint Galactic Unicorn Libs + - name: Lint MicroPython Examples shell: bash run: | - python3 -m flake8 --show-source --ignore E501 firmware/PIMORONI_GALACTIC_UNICORN/lib \ No newline at end of file + source .venv/bin/activate + python -m flake8 --show-source --ignore E501 examples/ \ No newline at end of file diff --git a/ci/micropython.sh b/ci/micropython.sh index 6dc26ef..b3fb138 100644 --- a/ci/micropython.sh +++ b/ci/micropython.sh @@ -70,7 +70,7 @@ function ci_micropython_build_mpy_cross { } function ci_apt_install_build_deps { - sudo apt update && sudo apt install ccache python3-virtualenvwrapper virtualenvwrapper + sudo apt update && sudo apt install ccache } function ci_prepare_all {