-
Notifications
You must be signed in to change notification settings - Fork 197
47 lines (36 loc) · 1.24 KB
/
integration-test.yml
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
43
44
45
46
47
name: trading-ig integration test
on:
schedule:
- cron: '25 2 * * 1-4'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install Poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.5.1
- name: Install dependencies
run: |
python -m poetry install --extras "pandas munch tenacity"
- name: Integration test with pytest
env:
IG_SERVICE_USERNAME: ${{ secrets.IG_SERVICE_USERNAME }}
IG_SERVICE_PASSWORD: ${{ secrets.IG_SERVICE_PASSWORD }}
IG_SERVICE_API_KEY: ${{ secrets.IG_SERVICE_API_KEY }}
IG_SERVICE_ACC_TYPE: ${{ secrets.IG_SERVICE_ACC_TYPE }}
IG_SERVICE_ACC_NUMBER: ${{ secrets.IG_SERVICE_ACC_NUMBER_1 }}
run: |
poetry run coverage run -m --source=trading_ig pytest --log-cli-level=DEBUG --log-format="%(asctime)s %(levelname)s %(message)s" --log-date-format="%Y-%m-%d %H:%M:%S"
poetry run coverage report
- name: Coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
poetry run coveralls --service=github