Skip to content

Commit

Permalink
Fix placement of constraints.txt in Action.
Browse files Browse the repository at this point in the history
Cannot move to / due to read-only file system; instead, use
$GITHUB_WORKSPACE in order to be able to specify absolute path to file
in PIP_CONSTRAINT.
  • Loading branch information
robertbartel committed Oct 15, 2024
1 parent 7fdb524 commit e51cc62
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/actions/ngen-build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,8 @@ runs:

- name: Set Pip Constraints
run: |
echo "numpy<2.0" > constraints.txt
sudo mv constraints.txt /constraints.txt
echo "PIP_CONSTRAINT=/constraints.txt" >> $GITHUB_ENV
echo "numpy<2.0" > $GITHUB_WORKSPACE/constraints.txt
echo "PIP_CONSTRAINT=$GITHUB_WORKSPACE/constraints.txt" >> $GITHUB_ENV
shell: bash

- name: Cache Python Dependencies
Expand Down

0 comments on commit e51cc62

Please sign in to comment.