diff --git a/.github/workflows/micropython.yml b/.github/workflows/micropython.yml index 3c00713..b8837d6 100644 --- a/.github/workflows/micropython.yml +++ b/.github/workflows/micropython.yml @@ -14,7 +14,7 @@ env: jobs: build: name: ${{ matrix.name }} (${{ matrix.board }} ${{ matrix.variant }} ${{ matrix.modules }}) - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest continue-on-error: true strategy: matrix: diff --git a/.github/workflows/python-linting.yml b/.github/workflows/python-linting.yml new file mode 100644 index 0000000..339cd7b --- /dev/null +++ b/.github/workflows/python-linting.yml @@ -0,0 +1,25 @@ +name: Python Linting + +on: + push: + pull_request: + +jobs: + build: + name: Python Linting + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install Python Deps + run: python3 -m pip install ruff + + - name: Lint Frozen Modules + shell: bash + run: | + python3 -m ruff check --output-format=full --ignore E501 modules/py_frozen + + - name: Lint Examples + shell: bash + run: | + python3 -m ruff check --output-format=full --ignore E501 modules/py_littlefs \ No newline at end of file