Automated commit (Turing) #1321
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
# Workflow to Run Python tests | |
--- | |
name: Run Python Tests | |
on: | |
[push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
USE_TEST_ARTIFACTS: 1 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Python 3 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install -r tests/requirements.txt | |
sbase get chromedriver latest | |
- name: Start Streamlit app | |
run: | | |
streamlit run app/app.py --server.headless true & | |
- name: Run tests with pytest | |
run: pytest |