Run pytests for debugging #123
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: Test Pytest | |
on: | |
push: | |
branches: | |
- rk/* | |
jobs: | |
pdp-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Python setup | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11.8' | |
- name: Run Pytests | |
run: | | |
export PYTHONPATH=$(pwd) | |
python -m pip install --upgrade pip | |
python setup.py install | |
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
pytest -s --cache-clear horizon/tests/ |