-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove old obsolete files Add git-ignore file to avoid upload Pipfile.lock by the user since they will be created only via gha Include codeserver notebook on the refresh-piplock-files recipe Add git-ignore to the intel flavor and modify the makefile refresh-piplock to work with optional directories Update refresh-pipfilelock-files to accept optional file directories for updates Update documentation in regards the Pipfile lock generation
- Loading branch information
Showing
52 changed files
with
400 additions
and
222 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,65 @@ | ||
--- | ||
# This GitHub action is meant to update the pipfile.locks | ||
name: Pipfile.locks Renewal Action | ||
|
||
on: # yamllint disable-line rule:truthy | ||
workflow_dispatch: # for manual trigger workflow from GH Web UI | ||
inputs: | ||
branch: | ||
description: 'Specify branch' | ||
required: false | ||
default: 'main' | ||
python_version: | ||
description: 'Select Python version to update Pipfile.lock' | ||
required: false | ||
default: '3.11' | ||
type: choice | ||
options: | ||
- '3.11' | ||
- '3.9' | ||
- '3.8' | ||
update_optional_dirs: | ||
description: 'Include optional directories in update' | ||
required: false | ||
default: 'false' | ||
type: choice | ||
options: | ||
- 'true' | ||
- 'false' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
# Checkout the specified branch from the specified organization | ||
- name: Checkout code from the specified branch | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.inputs.branch }} | ||
token: ${{ secrets.GH_ACCESS_TOKEN }} | ||
|
||
# Configure Git | ||
- name: Configure Git | ||
run: | | ||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --global user.name "GitHub Actions" | ||
# Setup Python environment with the specified version (or default to '3.11') | ||
- name: Setup Python environment | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ github.event.inputs.python_version }} | ||
|
||
# Install pipenv | ||
- name: Install pipenv | ||
run: pip install pipenv | ||
|
||
# Run makefile recipe to refresh Pipfile.lock and push changes back to the branch | ||
- name: Run make refresh-pipfilelock-files and push the changes back to the branch | ||
run: | | ||
make refresh-pipfilelock-files PYTHON_VERSION=${{ github.event.inputs.python_version }} INCLUDE_OPT_DIRS=${{ github.event.inputs.update_optional_dirs }} | ||
git add -f . | ||
git commit -m "Update Pipfile.lock files by piplock-renewal.yaml action" | ||
git push origin ${{ github.event.inputs.branch }} |
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
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
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
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# pipenv | ||
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. | ||
# However, in case of collaboration, if having platform-specific dependencies or dependencies | ||
# having no cross-platform support, pipenv may install dependencies that don't work, or not | ||
# install all needed dependencies. | ||
Pipfile.lock |
Oops, something went wrong.