Fe tests robot framework gh actions #11
Workflow file for this run
This file contains 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: Robot Framework CI | |
# Borrowed code from: | |
# https://piyathida-sanaoun01.medium.com/how-to-setup-ci-github-action-to-run-robot-framework-49028a404fee | |
# https://github.com/laojala/robot_docker_demo/blob/master/.github/workflows/run_robot_framework_tests.yml | |
on: | |
push: | |
branches: | |
- main | |
# Do not run tests if file README.md changes | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
# Do not run tests if file README.md changes | |
paths-ignore: | |
- '**.md' | |
schedule: | |
# Run tests nightly at 2am | |
- cron: '0 2 * * *' | |
jobs: | |
Run-Test: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v1 | |
- name: Install google-chrome | |
run: sudo apt-get install -y google-chrome | |
# - uses: browser-actions/setup-chrome@v1 | |
- uses: nanasess/setup-chromedriver@v2 | |
- uses: actions/cache@v2 | |
id: cache | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }} | |
- name: Install pip dependencies | |
run: | | |
pip install --upgrade pip certifi urllib3 | |
pip install -r requirements.txt -r requirements-test.txt | |
- name: Run Streamlit app | |
run: streamlit run streamlit_app.py & | |
- name: Run Robot tests | |
run: ./run-robot-tests | |
- name: Publish test results | |
uses: actions/upload-artifact@v2 | |
with: | |
name: robot-test-results | |
path: tests/robot/output |