Skip to content

Commit

Permalink
Install Python 3.10 for license finder
Browse files Browse the repository at this point in the history
  • Loading branch information
imjoehaines committed May 20, 2024
1 parent 85a3c52 commit 1cc84e9
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 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.10
python-version: '3.10'

- 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,10 @@ jobs:
run: >
docker run -v $PWD:/scan licensefinder/license_finder /bin/bash -lc "
cd /scan &&
pip3 install -r requirements.txt --quiet &&
apt-get update &&
apt-get install -y python3-venv &&
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 1cc84e9

Please sign in to comment.