Skip to content

Commit

Permalink
ETCM-8833 fix shell config
Browse files Browse the repository at this point in the history
  • Loading branch information
ladamesny committed Nov 8, 2024
1 parent df23aa1 commit 3c7e1c5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/actions/tests/run-e2e-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,25 +95,28 @@ runs:
echo "Running tests via docker exec"
docker exec tests bash -c "
cd /e2e-tests &&
python -m venv venv &&
source venv/bin/activate &&
pip install -r requirements.txt &&
$pytest_cmd
"
else
echo "Running tests locally"
cd e2e-tests
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
eval "$pytest_cmd"
fi
- name: Copy .report.json if run with docker exec
- name: Copy test results
if: ${{ inputs.local-environment == 'true' }}
shell: bash
run: |
echo "Copy test results from docker container"
mkdir -p e2e-tests
docker cp tests:/e2e-tests/.report.json e2e-tests/.report.json
shell: bash
echo "Running tests..."
eval "$pytest_cmd"
- name: Upload test results
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 3c7e1c5

Please sign in to comment.