-
Notifications
You must be signed in to change notification settings - Fork 58
/
appveyor.yml
80 lines (68 loc) · 2.49 KB
/
appveyor.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
image:
- Ubuntu
- Visual Studio 2017
matrix:
# Finish when first job fails
fast_finish: true
notifications:
- provider: Email
to:
- abbasi.sal@gmail.com
on_build_success: true
on_build_failure: true
on_build_status_changed: true
platform:
-x64
# Not a .NET project, we build in the install step instead
build: false
environment:
PYTHON_ARCH: "64"
PYTHON_VERSION: "3.10"
for:
-
matrix:
only:
- image: Ubuntu
install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
- conda create -c conda-forge -q -n test-environment python=$PYTHON_VERSION pybind11 pytest pandas pandas_market_calendars numpy ipython sortedcontainers libzip h5py statsmodels mypy flake8 plotly ipywidgets python-dateutil types-python-dateutil cython pyyaml nbformat
- source activate test-environment
- conda list
- CXX=g++-9 CC=g++-9 python setup.py build_ext --inplace
test_script:
- which python
- python -c 'import pyqstrat'
- export NO_DISPLAY=1
- python -m pytest pyqstrat
- mypy --ignore-missing-imports pyqstrat/
- flake8 --ignore W291,W293,W503,E402,E701,E275,E741 --max-line-length=160 pyqstrat/
# run notebooks and exit on first error
- find pyqstrat/notebooks -name '*.ipynb' | xargs -n1 sh -c 'ipython --no-automagic $0 || exit 255'
-
matrix:
only:
- image: Visual Studio 2017
install:
- set "CONDA_ROOT=C:\Miniconda3-x64"
- set "PATH=%CONDA_ROOT%;%CONDA_ROOT%\Scripts;%CONDA_ROOT%\Library\bin;%PATH%"
- echo %PATH%
- conda config --set always_yes yes
- conda info -a
- conda create -c conda-forge -q -n test-environment python=%PYTHON_VERSION% pybind11 pytest pandas pandas_market_calendars numpy ipython sortedcontainers libzip h5py statsmodels mypy flake8 plotly ipywidgets python-dateutil types-python-dateutil cython pyyaml
- "%CONDA_ROOT%\\Scripts\\activate test-environment"
- conda list
- python setup.py build_ext --inplace
test_script:
- python --version
- python -c "import pyqstrat"
- set "NO_DISPLAY=1"
- python -m pytest pyqstrat
- mypy --ignore-missing-imports pyqstrat/
- flake8 --ignore W291,W293,W503,E701,E275,E741 --max-line-length=160 pyqstrat/