Skip to content

Commit

Permalink
Merge pull request #64 from arduino/linter_workflow
Browse files Browse the repository at this point in the history
misc: Update linter workflow.
  • Loading branch information
iabdalkader authored Jul 18, 2023
2 parents 2e2bc9e + 38c4e1f commit f3e4500
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/python-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,21 @@ jobs:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10"]

steps:
- name: '⏳ Checkout repository'
uses: actions/checkout@v3

- name: '🐍 Set up Python ${{ matrix.python-version }}'
uses: actions/setup-python@v3
- name: '🐍 Set up Python'
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
python-version: "3.10"

- name: '🛠 Install dependencies'
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
python -m pip install flake8==6.0.0 pytest==7.4.0
- name: '😾 Lint with flake8'
run: |
Expand Down

0 comments on commit f3e4500

Please sign in to comment.