Skip to content

Commit

Permalink
OPSEXP-2106 add new action pipenv (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
slohe1 committed Jun 22, 2023
1 parent 266ec89 commit 89af425
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/actions/pipenv/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: pipenv
description: 'Install python packages with pipenv'
inputs:
python-version:
description: The python version
required: false
default: "3.9"

runs:
using: "composite"
steps:
- name: Install pipenv dependency
shell: bash
run: pip install -r ${{ github.action_path }}/requirements.txt
- name: Prepare pipenv virtualenv
shell: bash
run: pipenv install --deploy --dev --python ${{ inputs.python-version }}
1 change: 1 addition & 0 deletions .github/actions/pipenv/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pipenv==2023.6.12
5 changes: 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@ updates:
directory: "/"
schedule:
interval: "daily"

- package-ecosystem: "pip"
directory: "/.github/actions/pipenv"
schedule:
interval: "weekly"
16 changes: 16 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ Here follows the list of GitHub Actions topics available in the current document
- [nexus-release-staging](#nexus-release-staging)
- [pre-commit](#pre-commit)
- [pre-commit-default](#pre-commit-default)
- [pipenv](#pipenv)
- [rancher](#rancher)
- [reportportal-prepare](#reportportal-prepare)
- [reportportal-summarize](#reportportal-summarize)
Expand Down Expand Up @@ -844,6 +845,21 @@ Or:
check-github-configuration: 'false'
```

### pipenv

This workflow sets up a Python environment using the standard setup-python action and utilizes the pipenv action to manage Python dependencies declared in the Pipfile and based on the specified Python version

```yml
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
id: setup-python
with:
python-version: "3.9"
- uses: Alfresco/alfresco-build-tools/.github/actions/pipenv@ref
with:
python-version: ${{ steps.setup-python.outputs.python-version }}
```

### rancher

register or detach an EKS cluster to Rancher.
Expand Down

0 comments on commit 89af425

Please sign in to comment.