-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
actions: Re-enable pip requirements pipeline
Bring back pip-requirements.yml pipeline with limited functions which fo not require using secrets Signed-off-by: Jan Gałda <[email protected]>
- Loading branch information
1 parent
ab3c57c
commit bc7d581
Showing
2 changed files
with
6 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
name: Validate pip requirements-fixed.txt | ||
|
||
on: | ||
pull_request_target: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
branches: | ||
- main | ||
- 'v*-branch' | ||
paths: | ||
- 'scripts/requirements*.txt' | ||
|
||
env: | ||
REACT_EMOTE: 'eyes' | ||
|
||
jobs: | ||
check-requirements: | ||
runs-on: ubuntu-20.04 | ||
|
@@ -30,7 +27,7 @@ jobs: | |
echo "python_version=$PYTHON_VERSION" >> $GITHUB_OUTPUT | ||
- name: Setup python version | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '${{ steps.pyv.outputs.python_version }}' | ||
|
||
|
@@ -40,31 +37,11 @@ jobs: | |
pip3 install --user -U setuptools wheel pip virtualenv virtualenvwrapper | ||
- name: Execute script diff action | ||
uses: nrfconnect/action-script-diff@v0.2 | ||
uses: nrfconnect/action-script-diff@v0.3 | ||
with: | ||
github-token: ${{ secrets.NCS_GITHUB_TOKEN }} | ||
message_diff: | | ||
This pr introduces changes to requirements files. | ||
The compiled requirements-fixed.txt has changed. | ||
To automatically add the changed file to this pr react with the :$REACT_EMOTE: emote to this comment and re-run the check. | ||
[Check Run]($GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID) | ||
<details> | ||
<summary>requirements-fixed.txt diff</summary> | ||
\`\`\` diff | ||
$GITDIFF | ||
\`\`\` | ||
</details> | ||
message_success: | | ||
The changes to the 'requirements-fixed.txt' have been added to this PR. | ||
All further changes to any of the requirements file will automatically be applied as long an :$REACT_EMOTE: is present. | ||
git_diff_root: ncs/nrf | ||
diff_path: scripts | ||
diff_file: requirements-fixed.txt | ||
reaction_emote: "${{ env.REACT_EMOTE }}" | ||
git_user_name: "Nordic Builder" | ||
git_user_email: "[email protected]" | ||
diff_file: "ncs/nrf/scripts/requirements-fixed.txt" | ||
script_call: | | ||
cd ncs | ||
OUT_FILE="nrf/scripts/requirements-fixed.txt" | ||
echo "Writing frozen requirements to: $OUT_FILE" | ||
echo "Log python version: $(python --version)" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters