From 543c16103404a9a9b443ed68d3501917ff5dd06a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Boisvert?= Date: Thu, 26 Sep 2024 13:57:25 -0400 Subject: [PATCH] Update unit_tests.yml --- .github/workflows/unit_tests.yml | 36 ++++++++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 3e44a41b..102e6946 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -318,10 +318,38 @@ jobs: workarena-fast-tests: if: github.event_name == 'pull_request' - uses: ServiceNow/WorkArena/.github/workflows/unit-tests.yml@workarena-plus-plus - with: - run_fast_tests_only: true - secrets: inherit + runs-on: ubuntu-latest + steps: + - name: Checkout Dependency Repo + uses: actions/checkout@v4 + + - name: Checkout WorkArena + uses: actions/checkout@v4 + with: + repository: ServiceNow/WorkArena + ref: workarena-plus-plus + path: WorkArena + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.10' + cache: 'pip' + + - name: Install dependencies + working-directory: WorkArena/dev + run: pip install -r requirements.txt + + - name: Install Playwright + run: playwright install --with-deps + + - name: Run fast tests + working-directory: WorkArena + env: + SNOW_INSTANCE_URL: ${{ secrets.SNOW_INSTANCE_URL }} + SNOW_INSTANCE_UNAME: ${{ secrets.SNOW_INSTANCE_UNAME }} + SNOW_INSTANCE_PWD: ${{ secrets.SNOW_INSTANCE_PWD }} + run: pytest -n 5 --durations=10 -m 'not slow and not pricy' --slowmo 1000 -v tests scheduled-workarena-slow-tests: if: github.event_name == 'schedule'