Complete the code to specify the name of the GitHub Actions workflow.
name: [1]The name field sets the workflow's display name. Here, 'Test Workflow' clearly indicates the purpose.
Complete the code to specify the event that triggers the workflow on every push.
on:
[1]:
branches:
- mainpull_request which triggers on PRs, not pushes.The push event triggers the workflow when code is pushed to the specified branch.
Fix the error in the job definition by completing the runner specification.
jobs:
test:
runs-on: [1]The ubuntu-latest runner is commonly used for Python Selenium tests on GitHub Actions.
Fill both blanks to install Python and Selenium in the workflow steps.
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: [1]@v4
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install [2]The actions/setup-python action sets up Python. Installing selenium is needed for Selenium tests.
Fill all three blanks to run the Selenium test script with Python in the workflow.
- name: Run tests
run: |
python [1]/[2].py --browser [3]The test script is in the tests folder, named test_selenium.py, and runs using the Chrome browser.