Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/devRun.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
25 changes: 18 additions & 7 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand All @@ -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
Expand All @@ -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:
Expand Down