fix to dashboard #177
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: Unit Tests | |
# Runs unit tests to check that changes to code haven't broken | |
# anything. | |
# If you modify this make sure changes are also relflected in | |
# `test_build_push.yml` as well, which conditionally pushes | |
# changes to the cloud if its tests pass. | |
on: [push, pull_request] | |
jobs: | |
run-tests: | |
name: Run Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- name: Create and activate virtual environment | |
run: | | |
python -m venv venv | |
source venv/bin/activate | |
- name: Install dependencies | |
run: | | |
source venv/bin/activate | |
pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Set up environment | |
run: | | |
source venv/bin/activate | |
export PYTHONPATH="$PYTHONPATH:$(pwd)" | |
source ./add_root_to_path.sh | |
- name: Run tests without coverage | |
run: | | |
source venv/bin/activate | |
export PYTHONPATH="$PYTHONPATH:$(pwd)" | |
pytest |