dev: Support Python versions 3.9/3.10/3.11 #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: | |
- push | |
- pull_request | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
black: | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
python-version: | |
- "3.11" | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: psf/black@stable | |
with: | |
options: "--check --verbose" | |
src: "./stm32loader" | |
flake8: | |
strategy: | |
fail-fast: true | |
matrix: | |
os: | |
- ubuntu-latest | |
python-version: | |
- "3.11" | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install lint dependencies | |
run: pip install flake8 pyserial | |
- name: Run flake8 | |
run: flake8 stm32loader | |
pylint: | |
strategy: | |
fail-fast: true | |
matrix: | |
os: | |
- ubuntu-latest | |
python-version: | |
- "3.11" | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install lint dependencies | |
run: pip install pylint pyserial | |
- name: Run pylint | |
run: pylint stm32loader |