Skip to content

Commit

Permalink
Patch metadata-validation Github action: use external python
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, patch the action to use Github's `setup-python` and a
virtualenv to obtain a functioning Python enviroment.
  • Loading branch information
chrisandreae committed Jul 24, 2024
1 parent e4f167f commit 20b5979
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/hardware-metadata-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@ jobs:
image: docker.io/zmkfirmware/zmk-dev-arm:3.5
steps:
- uses: actions/checkout@v4
- name: Take ownership of /github/home (temporary patch)
run: chown -R $(whoami) /github/home
- name: Install python environment (temporary patch)
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Setup Python virtual environment (temporary patch)
run: |
python3 -m venv /tmp/venv
. /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 20b5979

Please sign in to comment.