Skip to content

Commit

Permalink
Patch metadata-validation Github action: add python virtualenv
Browse files Browse the repository at this point in the history
The upstream hardware-metadata-validation action presently fails to install
python dependencies with a permissions error for the pip cache directory.
Until it's fixed upstream, use a virtualenv.
  • Loading branch information
chrisandreae committed Jul 24, 2024
1 parent e4f167f commit 5d1b293
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/hardware-metadata-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ jobs:
image: docker.io/zmkfirmware/zmk-dev-arm:3.5
steps:
- uses: actions/checkout@v4
- name: Setup Python virtual environment
run: |
apt install python3-venv
python3 -m venv /tmp/venv
source /tmp/venv/bin/activate
echo VIRTUAL_ENV="$VIRTUAL_ENV" >> $GITHUB_ENV
echo PATH="$PATH" >> $GITHUB_ENV
- name: Install dependencies
run: pip install -r app/scripts/requirements.txt
- name: West init
Expand Down

0 comments on commit 5d1b293

Please sign in to comment.