From c629c246a8ef47b83bcba859ca0ae269492c96c6 Mon Sep 17 00:00:00 2001 From: Natalie Bunduwongse Date: Fri, 15 Nov 2024 14:21:57 +1300 Subject: [PATCH] test: update requirements for desktop and mobile --- .github/workflows/ui-tests.yml | 7 ++++++- sample/Tests/requirements-desktop.txt | 9 +++++++++ .../Tests/{requirements.txt => requirements-mobile.txt} | 0 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 sample/Tests/requirements-desktop.txt rename sample/Tests/{requirements.txt => requirements-mobile.txt} (100%) diff --git a/.github/workflows/ui-tests.yml b/.github/workflows/ui-tests.yml index 32fb618e..7a0ad0de 100644 --- a/.github/workflows/ui-tests.yml +++ b/.github/workflows/ui-tests.yml @@ -86,7 +86,12 @@ jobs: with: python-version: "3.10" - name: Install dependencies - run: pip install -r "sample/Tests/requirements.txt" + run: | + if [[ "${{ matrix.targetPlatform }}" == "StandaloneOSX" || "${{ matrix.targetPlatform }}" == "StandaloneWindows64" ]]; then + pip install -r "sample/Tests/requirements-desktop.txt" + else + pip install -r "sample/Tests/requirements-mobile.txt" + fi - name: Run UI tests env: UNITY_APP_PATH: SampleApp.app diff --git a/sample/Tests/requirements-desktop.txt b/sample/Tests/requirements-desktop.txt new file mode 100644 index 00000000..d8c4eab0 --- /dev/null +++ b/sample/Tests/requirements-desktop.txt @@ -0,0 +1,9 @@ +AltTester_Driver==2.1.1 +google_api_python_client==2.136.0 +google_auth_oauthlib==1.2.0 +protobuf==5.27.2 +selenium==4.22.0 +pytest==8.2.2 +requests==2.32.3 +mailslurp-client==15.19.22 +Appium-Python-Client \ No newline at end of file diff --git a/sample/Tests/requirements.txt b/sample/Tests/requirements-mobile.txt similarity index 100% rename from sample/Tests/requirements.txt rename to sample/Tests/requirements-mobile.txt