diff --git a/.github/workflows/devRun.yml b/.github/workflows/devRun.yml index 7326433531..2b6e8f83df 100644 --- a/.github/workflows/devRun.yml +++ b/.github/workflows/devRun.yml @@ -56,7 +56,7 @@ jobs: echo GIT_COMMIT_TIME=$(git show -s --format=%ci HEAD) echo CHROME_VERSION=$(google-chrome --product-version) } >> environment.properties - - name: Allure results + - name: Generate Allure Report uses: simple-elf/allure-report-action@master if: always() id: allure-report @@ -65,7 +65,7 @@ jobs: allure_report: allure-report gh_pages: gh-pages allure_history: allure-history - - name: Deploy report to Github Pages + - name: Deploy Report To Github Pages if: always() uses: peaceiris/actions-gh-pages@v4 with: diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 0ed3137edb..a79dfc21db 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -5,12 +5,20 @@ name: Nightly regression tests on: schedule: - - cron: "0 0 * * *" + - cron: "0 0 * * *" workflow_dispatch: + inputs: + pytest_command: + description: 'Custom pytest command' + required: true + default: '-m "not devRun"' jobs: nightly: runs-on: ubuntu-latest + env: + EMAIL: ${{ secrets.EMAIL }} + PASSWORD: ${{ secrets.PASSWORD }} steps: - uses: actions/checkout@v4 - name: Set up Python @@ -31,10 +39,13 @@ jobs: key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} - name: Install Dependencies run: poetry install --no-interaction --no-root - - name: Test with pytest - env: - EMAIL: ${{ secrets.EMAIL }} - PASSWORD: ${{ secrets.PASSWORD }} + - name: Run custom pytest command + if: github.event_name == 'workflow_dispatch' + run: | + source .venv/bin/activate + xvfb-run pytest ${{ github.event.inputs.pytest_command }} --base-url ${{ vars.BASE_URL }} + - name: Run default pytest command + if: github.event_name != 'workflow_dispatch' run: | source .venv/bin/activate xvfb-run pytest -m "not devRun" --base-url ${{ vars.BASE_URL }} @@ -51,7 +62,7 @@ jobs: echo GIT_COMMIT_TIME=$(git show -s --format=%ci HEAD) echo CHROME_VERSION=$(google-chrome --product-version) } >> environment.properties - - name: Allure results + - name: Generate Allure Report uses: simple-elf/allure-report-action@master if: always() id: allure-report @@ -60,7 +71,7 @@ jobs: allure_report: allure-report gh_pages: gh-pages allure_history: allure-history - - name: Deploy report to Github Pages + - name: Deploy Report To Github Pages if: always() uses: peaceiris/actions-gh-pages@v4 with: