Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add version locking for nbdev-ci #71

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions nbdev-ci/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ inputs:
description: 'Install prerelease nbdev/execnb from master?'
required: false
default: ''
version:
nbdev_version:
description: 'What specific nbdev version to install from pypi? (default to latest)'
required: false
default: ''
python_version:
description: 'Version of python to set up'
required: false
default: '3.9'
Expand All @@ -24,12 +28,13 @@ runs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ inputs.version }}
python-version: ${{ inputs.python_version }}
cache: "pip"
cache-dependency-path: settings.ini
- name: Test with nbdev
env:
USE_PRE: ${{ inputs.pre }}
NBDEV_VERSION: ${{ inputs.nbdev_version }}
SKIP_TEST: ${{ inputs.skip_test }}
FLAGS: ${{ inputs.flags }}
shell: bash
Expand All @@ -41,6 +46,8 @@ runs:
pip install -U git+https://github.com/fastai/ghapi.git
pip install -U git+https://github.com/fastai/execnb.git
pip install -U git+https://github.com/fastai/nbdev.git
elif [ $NBDEV_VERSION ]; then
pip install nbdev==$NBDEV_VERSION
else
pip install -U nbdev
fi
Expand Down