-
Notifications
You must be signed in to change notification settings - Fork 12
42 lines (42 loc) · 1.41 KB
/
forex_tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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