Skip to content

Commit

Permalink
fix: gitlint installation
Browse files Browse the repository at this point in the history
Latest ubuntu does not allow system wide pip install.
It can be overriden with `--break-system-packages`,
but it's better to create a virtual env.

Signed-off-by: Martin Malina <mmalina@redhat.com>
  • Loading branch information
mmalina committed Oct 16, 2024
1 parent 1a60370 commit 473cd94
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,19 @@ jobs:
run: docker build -f ./Dockerfile .
gitlint:
name: Run gitlint checks
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Install gitlint into container
run: python -m pip install gitlint
run: |
python3 -m venv venv
source venv/bin/activate
python3 -m pip install gitlint
- name: Run gitlint check
run: gitlint --commits origin/${{ github.event.pull_request.base.ref }}..HEAD
run: |
source venv/bin/activate
gitlint --commits origin/${{ github.event.pull_request.base.ref }}..HEAD

0 comments on commit 473cd94

Please sign in to comment.