-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly implement workflow_call procedure
- Loading branch information
1 parent
32984ad
commit 0646b07
Showing
2 changed files
with
36 additions
and
39 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
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,31 @@ | ||
name: Run tests | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
python-version: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
run_test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Steps common to both groups | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ inputs.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ inputs.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install -r requirements.txt | ||
python -m pip install -r tests/requirements.txt | ||
- name: Install package | ||
run: | | ||
python --version | ||
python -m pip install . -v --progress-bar off | ||
python -c "import parsnip; print('parsnip', parsnip.__version__)" | ||
- name: Test with pytest | ||
run: | | ||
python -m pytest -v |