Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pip installs in GitHub Actions #1926

Merged
merged 1 commit into from
Oct 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 10 additions & 28 deletions .github/workflows/code_quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand Down
Loading