fixing tests #258
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: Python FOREX library tests | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
# Semantic version range syntax or exact version of a Python version | |
python-version: '3.9' | |
# Optional - x64 or x86 architecture, defaults to x64 | |
architecture: 'x64' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Test forex library with pytest | |
run: | | |
export PYTHONPATH=$PWD | |
export TOKEN=${{ secrets.OANDA_TOKEN }} | |
pip install pytest && cd tests/forex/ | |
pytest -s -v | |
- name: Test api library with pytest | |
run: | | |
export PYTHONPATH=$PWD | |
export TOKEN=${{ secrets.OANDA_TOKEN }} | |
pip install pytest && cd tests/api/ | |
pytest -s -v | |
- name: Test trade_bot library with pytest | |
run: | | |
export PYTHONPATH=$PWD | |
export TOKEN=${{ secrets.OANDA_TOKEN }} | |
pip install pytest && cd tests/trade_bot/ | |
pytest -s -v | |
- name: Test trading_journal library with pytest | |
run: | | |
export PYTHONPATH=$PWD | |
export TOKEN=${{ secrets.OANDA_TOKEN }} | |
pip install pytest && cd tests/trading_journal/ | |
pytest -s -v |