Coverage #16
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: Run Tests with Pytest | |
on: | |
push: | |
branches: | |
- '*' | |
jobs: | |
unit-tests-pytest: | |
name: Run unit tests with pytest | |
runs-on: ubuntu-latest | |
steps: | |
- name: Change to root directory | |
run: cd $GITHUB_WORKSPACE | |
- name: Add project root to Python Path | |
run: | | |
import os | |
import sys | |
sys.path.append(os.path.abspath('.')) | |
shell: python | |
- name: Install system level libraries | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install libpq-dev gcc | |
- name: Checkout code from remote origin. | |
uses: actions/checkout@v2 | |
- name: Setup python version | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.11' | |
architecture: 'x64' | |
- name: Install & Run pytest | |
run: | | |
python -m pip install -r requirements.txt | |
pytest --cov=algotrade/ tests/ |