Do not use working-directory in test job (#2858)

This commit is contained in:
Jan Čermák 2023-10-23 18:15:10 +02:00 committed by GitHub
parent aed1bb807c
commit b55e6c22c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -23,9 +23,6 @@ jobs:
name: Test in QEMU
runs-on: ubuntu-22.04
defaults:
run:
working-directory: ./tests
steps:
- name: Checkout source
uses: actions/checkout@v4
@ -44,7 +41,7 @@ jobs:
- name: Install Python requirements
run:
pip install -r requirements.txt
pip install -r tests/requirements.txt
- name: Download HAOS image
if: ${{ github.event_name == 'workflow_dispatch' }}
@ -61,11 +58,12 @@ jobs:
- name: Extract OS image
run: |
xz -dc haos*.qcow2.xz > haos.qcow2
xz -dc haos*.qcow2.xz > tests/haos.qcow2
rm haos*.qcow2.xz
- name: Run tests
run: |
./run_tests.sh
./tests/run_tests.sh
- name: Archive logs
uses: actions/upload-artifact@v3

View File

@ -2,6 +2,8 @@
set -e
cd "$(dirname "$0")"
if [ -z "$GITHUB_ACTIONS" ] && [ -z "$VIRTUAL_ENV" ]; then
# Environment should be set up in separate GHA steps - which can also
# handle caching of the dependecies, etc.