Add space #2
Workflow file for this run
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: Selenium UI Tests | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| inputs: | |
| environment: | |
| description: 'Environment to test against' | |
| required: true | |
| default: 'staging' | |
| type: choice | |
| options: [development, staging, production] | |
| browser: | |
| description: 'Browser to run tests on' | |
| required: true | |
| default: 'chrome' | |
| type: choice | |
| options: [chrome, firefox] | |
| jobs: | |
| selenium-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 # Fetch only the latest commit to speed up the checkout process | |
| repository: ahdsab/FavaTesting | |
| token: ${{ secrets.TESTING_GITHUB_TOKEN }} # Use the token to access the repo | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install Python dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Set up Google Chrome | |
| uses: browser-actions/setup-chrome@v1 | |
| with: | |
| chrome-version: stable | |
| - name: Install Xvfb (virtual display) | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y google-chrome-stable | |
| - name: Run Selenium tests (with virtual display) | |
| env: | |
| HEADLESS: "true" | |
| Fava_URL: http://54.73.240.131:5000/example-beancount-file/income_statement/ | |
| run: | | |
| ls | |
| cd UI_Testing | |
| pytest |