Skip to content

Commit 3dc2d99

Browse files
committed
use string for if cond on test package input
1 parent bba34e3 commit 3dc2d99

File tree

6 files changed

+6
-8
lines changed

6 files changed

+6
-8
lines changed

.github/actions/install-python-and-package/action.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ inputs:
1616
test-release:
1717
required: false
1818
description: "To specify if testing the latest released version of the package (true) or the editable one (false)."
19-
default: "false"
19+
default: "editable"
2020

2121
runs:
2222
using: "composite"
@@ -84,11 +84,11 @@ runs:
8484
conda install pytables
8585
- name: Install the editable version of the package
8686
shell: bash {0}
87-
if: ${{ inputs.test-release == false}}
87+
if: ${{ inputs.test-release == 'editable' }}
8888
run: pip install .'[${{ inputs.extras-require }}]'
8989
- name: Install the latest released version of the package
9090
shell: bash {0}
91-
if: ${{ inputs.test-release == true}}
91+
if: ${{ inputs.test-release == 'latest' }}
9292
run: |
9393
rm -r deeprank2
9494
pip install deeprank2

.github/workflows/build-editable.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
with:
4646
python-version: ${{ matrix.python-version }}
4747
extras-require: test, publishing
48-
test-release: "false"
48+
test-release: "editable"
4949
- name: Run unit tests
5050
run: pytest -v
5151
- name: Verify that we can build the package

.github/workflows/build-latest-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
with:
4646
python-version: ${{ matrix.python-version }}
4747
extras-require: test, publishing
48-
test-release: "true"
48+
test-release: "latest"
4949
- name: Run unit tests
5050
run: pytest -v
5151
- name: Verify that we can build the package

.github/workflows/coveralls.yml

-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ jobs:
4545
with:
4646
python-version: ${{ matrix.python-version }}
4747
extras-require: test
48-
test-release: false
4948
- name: Run unit tests with coverage
5049
run: pytest --cov --cov-append --cov-report xml --cov-fail-under=80 --cov-report term --cov-report html
5150
- name: Coveralls

.github/workflows/linting.yml

-1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,5 @@ jobs:
4545
with:
4646
python-version: ${{ matrix.python-version }}
4747
extras-require: test
48-
test-release: false
4948
- name: Check style against standards using ruff
5049
run: ruff .

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
python-version: ${{ matrix.python-version }}
2525
extras-require: publishing
26-
test-release: false
26+
test-release: "editable"
2727
- name: Build wheel and source distribution
2828
run: python -m build
2929
- uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)