From eec2a0534f2b6c502d4f1cc9a5bd2addfe10f463 Mon Sep 17 00:00:00 2001 From: Miroslav Vadkerti Date: Wed, 24 Jul 2024 15:57:14 +0200 Subject: [PATCH] Add reservation test Signed-off-by: Miroslav Vadkerti --- .github/workflows/sanity.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/sanity.yaml b/.github/workflows/sanity.yaml index 79593ef..606ab60 100644 --- a/.github/workflows/sanity.yaml +++ b/.github/workflows/sanity.yaml @@ -7,13 +7,15 @@ jobs: sanity: runs-on: testing-farm steps: - - name: Checkout code - uses: actions/checkout@v4 - - name: Install dependencies - run: | - pip3 install --user tft-cli - name: Run testing-farm sanity test env: TESTING_FARM_API_TOKEN: ${{ secrets.TESTING_FARM_API_TOKEN }} run: | testing-farm request --compose Fedora-40 --plan /testing-farm/sanity --git-url https://gitlab.com/testing-farm/tests + + - name: Run testing-farm reservation test + env: + TESTING_FARM_API_TOKEN: ${{ secrets.TESTING_FARM_API_TOKEN }} + run: | + testing-farm reserve --compose Fedora-40 --duration 1 |& tee output <<< "exit" + ssh -oUserKnownHostsFile=/dev/null $(grep -Eo root@[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+ output) return2testingfarm