Skip to content

Commit

Permalink
Do not use working-directory in test job (#2858)
Browse files Browse the repository at this point in the history
  • Loading branch information
sairon authored Oct 23, 2023
1 parent aed1bb8 commit b55e6c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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' }}
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions tests/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b55e6c2

Please sign in to comment.