From eb60e39051923e794a5e0efcd6a3edd37607def9 Mon Sep 17 00:00:00 2001 From: Natalie Bunduwongse Date: Fri, 15 Nov 2024 16:43:42 +1300 Subject: [PATCH] test: update requirements for desktop and mobile --- .github/workflows/ui-tests.yml | 18 ++++++++++++++++-- sample/Tests/requirements-desktop.txt | 9 +++++++++ ...equirements.txt => requirements-mobile.txt} | 0 3 files changed, 25 insertions(+), 2 deletions(-) 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..82eff8f0 100644 --- a/.github/workflows/ui-tests.yml +++ b/.github/workflows/ui-tests.yml @@ -85,8 +85,22 @@ jobs: - uses: actions/setup-python@v4 with: python-version: "3.10" - - name: Install dependencies - run: pip install -r "sample/Tests/requirements.txt" + - name: Install dependencies (Windows) + if: ${{ matrix.targetPlatform == 'StandaloneWindows64' }} + shell: pwsh + run: | + if (${{ matrix.targetPlatform }} -eq "StandaloneWindows64") { + pip install -r "sample/Tests/requirements-desktop.txt" + } + - name: Install dependencies (Mac) + if: ${{ matrix.targetPlatform != 'StandaloneWindows64' }} + shell: bash + run: | + if [[ "${{ matrix.targetPlatform }}" == "StandaloneOSX" ]]; 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