Skip to content

Commit

Permalink
need to use relpath
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed May 27, 2021
1 parent 2bda6c7 commit e3f834c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ jobs:
git fetch
printf "Looking for changes in test ${{ matrix.test }}\n"
pip install -r requirements.txt
root=${PWD}
root="${PWD}"
cd tests
for testyaml in $(git diff --name-only origin/main HEAD .); do
relpath=$(basename ${testyaml})
if [ ! -f "${relpath}" ]; then
printf "${relpath} does not exist.\n"
continue
fi
relpath=$(basename ${testyaml if [ "$relpath" == "${{ matrix.test }}" ]; then
if [ "$relpath" == "${{ matrix.test }}" ]; then
printf "Found changed test file ${testyaml}\n"
python ../build-si-containers test --root "${root}" "${relpath}"
fi
Expand Down

0 comments on commit e3f834c

Please sign in to comment.