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 {