From 38c4e1fe84cb7752ca6292d2e2b5cf05e8c1c3c7 Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Tue, 18 Jul 2023 18:19:54 +0300 Subject: [PATCH] misc: Update linter workflow. --- .github/workflows/python-linter.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/python-linter.yml b/.github/workflows/python-linter.yml index f34431a..9526de7 100644 --- a/.github/workflows/python-linter.yml +++ b/.github/workflows/python-linter.yml @@ -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: |