diff --git a/.github/workflows/code_quality.yaml b/.github/workflows/code_quality.yaml index 83148c833..081ec492c 100644 --- a/.github/workflows/code_quality.yaml +++ b/.github/workflows/code_quality.yaml @@ -25,11 +25,9 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install robotframework-robocop + run: pipx install robotframework-robocop - name: Run robocop - run: python -m robocop --verbose --reports sarif . || true + run: robocop --verbose --reports sarif . || true - name: Upload SARIF file uses: github/codeql-action/upload-sarif@v2 with: @@ -39,28 +37,21 @@ jobs: name: python linters runs-on: ubuntu-latest env: - poetry_version: '1.7.1' + python_version: '3.11' + poetry_version: '1.8.3' steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Cache poetry in ~/.local - uses: actions/cache@v4 - id: cached-home-local - with: - path: ~/.local - key: "${{ runner.os }}-local-${{ env.poetry_version }}" - - name: Install poetry - if: steps.cached-home-local.outputs.cache-hit != 'true' - run: pip install poetry==${{ env.poetry_version }} + run: pipx install poetry==${{ env.poetry_version }} - name: Set up Python id: setup-python uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version: '${{ env.python_version }}' cache: 'poetry' - name: Configure poetry @@ -86,28 +77,19 @@ jobs: name: selftests runs-on: ubuntu-latest env: - poetry_version: '1.7.1' + python_version: '3.11' + poetry_version: '1.8.3' steps: - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Cache poetry in ~/.local - uses: actions/cache@v4 - id: cached-home-local - with: - path: ~/.local - key: "${{ runner.os }}-local-${{ env.poetry_version }}" - name: Install poetry - if: steps.cached-home-local.outputs.cache-hit != 'true' - run: pip install poetry==${{ env.poetry_version }} + run: pipx install poetry==${{ env.poetry_version }} - name: Set up Python id: setup-python uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version: '${{ env.python_version }}' cache: 'poetry' - name: Configure poetry