Skip to content

Commit 9c25009

Browse files
Update test.yaml
1 parent 1432cdb commit 9c25009

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/test.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ on:
77
workflow_dispatch:
88
inputs:
99
logLevel:
10-
description: 'Log level'
11-
required: true
12-
default: 'WARNING'
10+
description: Log level
11+
required: false
12+
default: WARNING
1313
type: choice
1414
options:
1515
- WARNING
@@ -44,7 +44,7 @@ jobs:
4444
MANTECA_BASE_URL: ${{ secrets.MANTECA_BASE_URL }}
4545
MANTECA_APPLICATION_ID: ${{ secrets.MANTECA_APPLICATION_ID }}
4646
BW_NUMBER_PROVIDER: ${{ secrets.BW_NUMBER_PROVIDER }}
47-
LEVEL: ${{ inputs.logLevel }}
47+
4848
steps:
4949
- name: Checkout
5050
uses: actions/checkout@v2
@@ -60,13 +60,13 @@ jobs:
6060
pip install -r test-requirements.txt
6161
6262
- name: Test at Debug Level
63-
if: ${{ inputs.logLevel }} == 'DEBUG'
63+
if: ${{ inputs.logLevel == 'DEBUG' }}
6464
run: |
6565
echo "Log level: ${{ inputs.logLevel }}"
66-
pytest -v --log-cli-level=DEBUG
66+
pytest -v --log-cli-level=${{inputs.logLevel}}
6767
6868
- name: Test at Warning Level
69-
if: (${{ inputs.logLevel }} == null) || (${{ inputs.logLevel }} == 'WARNING')
69+
if: ${{( inputs.logLevel == null) || ( inputs.logLevel == 'WARNING') }}
7070
run: |
7171
echo "Log level: $LEVEL"
7272
pytest -v --log-cli-level=WARNING

0 commit comments

Comments
 (0)