Skip to content

Commit

Permalink
Install Python 3.9 for license finder
Browse files Browse the repository at this point in the history
  • Loading branch information
imjoehaines committed May 20, 2024
1 parent dcab6f7 commit 4bde0ce
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/license-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,16 @@ on: [push, pull_request]

jobs:
license-audit:
# TODO: a GH action update broke the 'ubuntu-latest' image
# when it's fixed, we should switch back
runs-on: ubuntu-20.04
runs-on: 'ubuntu-latest'

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v2
with:
# License Finder's Docker image uses Python 3.5
python-version: 3.5
# License Finder's Docker image uses Python 3.9
python-version: '3.9'

- name: Fetch decisions.yml
run: curl https://raw.githubusercontent.com/bugsnag/license-audit/master/config/decision_files/global.yml -o decisions.yml
Expand All @@ -32,6 +30,8 @@ jobs:
run: >
docker run -v $PWD:/scan licensefinder/license_finder /bin/bash -lc "
cd /scan &&
pip3 install -r requirements.txt --quiet &&
python3 -m venv .venv &&
source .venv/bin/activate &&
pip3 install -r requirements.txt &&
license_finder --decisions-file decisions.yml --python-version 3 --enabled-package-managers=pip
"

0 comments on commit 4bde0ce

Please sign in to comment.