diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..e143411 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,42 @@ +name: Github Actions +on: + workflow_dispatch: + inputs: + username: + required: true + description: LT Username + accessKey: + description: LT Access Key + required: true + sampleRepoLink: + description: Link to the HyperExecute sample repo + default: https://github.com/LambdaTest/pytest-selenium-hyperexecute-sample + required: true + +jobs: + HyperExecute-Selenium: + runs-on: ${{ matrix.os }} + timeout-minutes: 15 + strategy: + fail-fast: false + matrix: + os: [windows-latest] + + steps: + - name: Checkout sources + uses: actions/checkout@v2 + + - name: Starting CLI testing + id: testng + shell: bash + run: | + echo "STEP 1 ) Downloading sample suite" + git clone ${{ github.event.inputs.sampleRepoLink }} + echo "STEP 2) Download CLI and setting environment variables" + cd pytest-selenium-hyperexecute-sample + curl https://downloads.lambdatest.com/hyperexecute/windows/hyperexecute.exe -o hyperexecute.exe + export LT_USERNAME=${{ github.event.inputs.username }} + export LT_ACCESS_KEY=${{ github.event.inputs.accessKey }} + echo $LT_USERNAME + echo $LT_ACCESS_KEY + ./hyperexecute --user $LT_USERNAME --key $LT_ACCESS_KEY --config yaml/win/pytest_hyperexecute_autosplit_sample.yaml --download-artifacts --download-report diff --git a/yaml/linux/pytest_hyperexecute_autosplit_sample.yaml b/yaml/linux/pytest_hyperexecute_autosplit_sample.yaml index b895d67..af278c8 100644 --- a/yaml/linux/pytest_hyperexecute_autosplit_sample.yaml +++ b/yaml/linux/pytest_hyperexecute_autosplit_sample.yaml @@ -12,8 +12,6 @@ retryOnFailure: true maxRetries: 1 concurrency: 2 -mergeArtifacts: true - env: # PAT: ${{ .secrets.testKey }} TARGET_OS: LINUX @@ -31,11 +29,18 @@ runtime: language: python version: "3" +mergeArtifacts: true uploadArtefacts: - name: TestReports path: - reports/** +report: true +partialReports: + type: json + location: reports/ + frameworkName: extent + testDiscovery: type: raw mode: dynamic diff --git a/yaml/linux/pytest_hyperexecute_matrix_sample.yaml b/yaml/linux/pytest_hyperexecute_matrix_sample.yaml index fc67c32..12933f8 100644 --- a/yaml/linux/pytest_hyperexecute_matrix_sample.yaml +++ b/yaml/linux/pytest_hyperexecute_matrix_sample.yaml @@ -35,6 +35,12 @@ uploadArtefacts: path: - reports/** +report: true +partialReports: + type: json + location: reports/ + frameworkName: extent + testSuites: - pytest -s --verbose --html=reports/report.html $files diff --git a/yaml/mac/pytest_hyperexecute_autosplit_sample.yaml b/yaml/mac/pytest_hyperexecute_autosplit_sample.yaml index 1e1898d..248737f 100644 --- a/yaml/mac/pytest_hyperexecute_autosplit_sample.yaml +++ b/yaml/mac/pytest_hyperexecute_autosplit_sample.yaml @@ -12,8 +12,6 @@ retryOnFailure: true maxRetries: 1 concurrency: 2 -mergeArtifacts: true - env: # PAT: ${{ .secrets.testKey }} TARGET_OS: MacOS Catalina @@ -32,11 +30,18 @@ runtime: language: python version: "3" +mergeArtifacts: true uploadArtefacts: - name: TestReports path: - reports/** +report: true +partialReports: + type: json + location: reports/ + frameworkName: extent + testDiscovery: type: raw mode: dynamic diff --git a/yaml/mac/pytest_hyperexecute_matrix_sample.yaml b/yaml/mac/pytest_hyperexecute_matrix_sample.yaml index 65e7ed0..4ba1127 100644 --- a/yaml/mac/pytest_hyperexecute_matrix_sample.yaml +++ b/yaml/mac/pytest_hyperexecute_matrix_sample.yaml @@ -37,6 +37,12 @@ uploadArtefacts: path: - reports/** +report: true +partialReports: + type: json + location: reports/ + frameworkName: extent + testSuites: - python3 -m pytest -s --verbose --html=reports/report.html $files diff --git a/yaml/pytest_hyperexexcute_hybrid_sample.yaml b/yaml/pytest_hyperexexcute_hybrid_sample.yaml index e445850..78030f0 100644 --- a/yaml/pytest_hyperexexcute_hybrid_sample.yaml +++ b/yaml/pytest_hyperexexcute_hybrid_sample.yaml @@ -42,6 +42,12 @@ uploadArtefacts: path: - reports/** +report: true +partialReports: + type: json + location: reports/ + frameworkName: extent + testDiscovery: type: raw mode: dynamic diff --git a/yaml/win/pytest_hyperexecute_autosplit_sample.yaml b/yaml/win/pytest_hyperexecute_autosplit_sample.yaml index ec7c7c2..35e3688 100644 --- a/yaml/win/pytest_hyperexecute_autosplit_sample.yaml +++ b/yaml/win/pytest_hyperexecute_autosplit_sample.yaml @@ -12,8 +12,6 @@ retryOnFailure: true maxRetries: 1 concurrency: 2 -mergeArtifacts: true - env: # PAT: ${{ .secrets.testKey }} TARGET_OS: Windows 10 @@ -31,11 +29,18 @@ runtime: language: python version: "3" +mergeArtifacts: true uploadArtefacts: - name: TestReports path: - reports/** +report: true +partialReports: + type: json + location: reports/ + frameworkName: extent + testDiscovery: type: raw mode: dynamic diff --git a/yaml/win/pytest_hyperexecute_matrix_sample.yaml b/yaml/win/pytest_hyperexecute_matrix_sample.yaml index 35e4225..9e4b182 100644 --- a/yaml/win/pytest_hyperexecute_matrix_sample.yaml +++ b/yaml/win/pytest_hyperexecute_matrix_sample.yaml @@ -36,6 +36,12 @@ uploadArtefacts: path: - reports/** +report: true +partialReports: + type: json + location: reports/ + frameworkName: extent + testSuites: - pytest -s --verbose --html=reports/report.html $files