Skip to content

Commit 0bb207d

Browse files
committed
install the module instead of modifying sys.path
1 parent 5883e35 commit 0bb207d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

action.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ runs:
2828
run: |
2929
echo "::group::Install dependencies"
3030
python -m pip install -r ${{ github.action_path }}/requirements.txt
31+
python -m pip install ${{ github.action_path }}
3132
echo "::endgroup::"
3233
- name: analyze environments
3334
shell: bash -l {0}
@@ -38,4 +39,7 @@ runs:
3839
ENVIRONMENT_PATHS: ${{ inputs.environment-paths }}
3940
TODAY: ${{ inputs.today }}
4041
run: |
41-
PYTHONPATH=${{github.action_path}} python -m minimum_versions validate --today="$TODAY" --policy="$POLICY_PATH" $ENVIRONMENT_PATHS
42+
python -m minimum_versions validate \
43+
--today="$TODAY" \
44+
--policy="$POLICY_PATH" \
45+
$ENVIRONMENT_PATHS

0 commit comments

Comments
 (0)