Skip to content

Commit 061c5d4

Browse files
committed
Further changes
1 parent 32cade6 commit 061c5d4

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

.github/actions/acceptance-tests/action.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,13 @@ runs:
4545
echo "PR_NUMBER=${{ inputs.targetEnvironment }}" >> $GITHUB_ENV
4646
4747
- name: Run component tests
48+
if: inputs.testType == "component"
4849
shell: bash
4950
run: |
5051
make test-component
5152
5253
- name: Check if e2e tests should run
54+
if: inputs.testType == "e2e"
5355
id: check_e2e
5456
shell: bash
5557
env:
@@ -72,13 +74,15 @@ runs:
7274
echo "run_e2e=true" >> $GITHUB_OUTPUT
7375
fi
7476
75-
- name: Install poetry
76-
if: steps.check_e2e.outputs.run_e2e == 'true'
77+
- name: Install poetry and pytest
78+
if: inputs.testType == "e2e" && steps.check_e2e.outputs.run_e2e == 'true'
7779
shell: bash
78-
run: pipx install poetry
80+
run: |
81+
pipx install poetry
82+
pip install pytest
7983
8084
- name: Run e2e tests
81-
if: steps.check_e2e.outputs.run_e2e == 'true'
85+
if: inputs.testType == "e2e" && steps.check_e2e.outputs.run_e2e == 'true'
8286
shell: bash
8387
run: |
8488
make .internal-dev-test

.github/actions/test-types.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[
2-
"acceptance"
2+
"component",
3+
"e2e"
34
]

0 commit comments

Comments
 (0)