Allure Testops #1313
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Allure Testops | |
| on: | |
| schedule: | |
| - cron: "0 */12 * * *" | |
| workflow_dispatch: | |
| inputs: | |
| ALLURE_JOB_RUN_ID: | |
| description: ALLURE_JOB_RUN_ID - service parameter (leave blank) | |
| required: false | |
| ENDPOINT: | |
| description: Endpoint | |
| required: false | |
| default: demo.qatools.cloud | |
| BROWSER: | |
| description: Browser | |
| required: false | |
| default: Opera | |
| OS: | |
| description: OS | |
| required: false | |
| default: macOS | |
| ASR_DEVICE: | |
| description: DEVICE | |
| required: false | |
| default: Galaxy s25 Plus | |
| ASR_LANGUAGE: | |
| description: LANGUAGE | |
| required: false | |
| default: Ko | |
| ALLURE_USERNAME: | |
| description: "ALLURE_USERNAME service parameter. Leave blank" | |
| required: false | |
| env: | |
| ALLURE_ENDPOINT: https://demo.qatools.cloud/ | |
| ALLURE_PROJECT_ID: 284 | |
| ALLURE_TOKEN: ${{ secrets.ALLURE_TOKEN }} | |
| ALLURE_JOB_RUN_ID: ${{ github.event.inputs.ALLURE_JOB_RUN_ID }} | |
| ALLURE_RESULTS: "allure-results" | |
| jobs: | |
| autotests: | |
| name: Run tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.12' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Install allurectl | |
| uses: allure-framework/setup-allurectl@v1 | |
| with: | |
| allure-endpoint: https://demo.qatools.cloud/ | |
| allure-token: ${{ secrets.ALLURE_TOKEN }} | |
| allure-project-id: 284 | |
| - name: Run tests | |
| run: allurectl watch -- pytest --alluredir=${ALLURE_RESULTS} --capture=no | |
| env: | |
| ENDPOINT: ${{ github.event.inputs.ENDPOINT}} | |
| BROWSER: ${{ github.event.inputs.BROWSER}} | |
| ASR_DEVICE: ${{ github.event.inputs.ASR_DEVICE}} | |
| ASR_LANGUAGE: ${{ github.event.inputs.ASR_LANGUAGE}} | |
| OS: ${{ github.event.inputs.OS}} | |
| ALLURE_JOB_RUN_ID: ${{ github.event.inputs.ALLURE_JOB_RUN_ID }} | |
| ALLURE_RESULTS: "allure-results" |