Merge pull request #3017 from freqtrade/ci_windows_38

CI on windows with python 3.8
This commit is contained in:
hroff-1902 2020-03-03 17:21:55 +03:00 committed by GitHub
commit 4513edf450
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 8 deletions

View File

@ -115,7 +115,7 @@ jobs:
strategy:
matrix:
os: [ windows-latest ]
python-version: [3.7]
python-version: [3.7, 3.8]
steps:
- uses: actions/checkout@v2
@ -130,8 +130,7 @@ jobs:
if: startsWith(runner.os, 'Windows')
with:
path: ~\AppData\Local\pip\Cache
key: ${{ runner.os }}-pip
restore-keys: ${{ runner.os }}-pip
key: ${{ matrix.os }}-${{ matrix.python-version }}-pip
- name: Installation
run: |

Binary file not shown.

View File

@ -3,7 +3,15 @@
# Invoke-WebRequest -Uri "https://download.lfd.uci.edu/pythonlibs/xxxxxxx/TA_Lib-0.4.17-cp37-cp37m-win_amd64.whl" -OutFile "TA_Lib-0.4.17-cp37-cp37m-win_amd64.whl"
python -m pip install --upgrade pip
pip install build_helpers\TA_Lib-0.4.17-cp37-cp37m-win_amd64.whl
$pyv = python -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')"
if ($pyv -eq '3.7') {
pip install build_helpers\TA_Lib-0.4.17-cp37-cp37m-win_amd64.whl
}
if ($pyv -eq '3.8') {
pip install build_helpers\TA_Lib-0.4.17-cp38-cp38-win_amd64.whl
}
pip install -r requirements-dev.txt
pip install -e .

View File

@ -448,9 +448,6 @@ def test_create_datadir_failed(caplog):
def test_create_datadir(caplog, mocker):
# Capture caplog length here trying to avoid random test failure
len_caplog_before = len(caplog.record_tuples)
cud = mocker.patch("freqtrade.commands.deploy_commands.create_userdata_dir", MagicMock())
csf = mocker.patch("freqtrade.commands.deploy_commands.copy_sample_files", MagicMock())
args = [
@ -462,7 +459,6 @@ def test_create_datadir(caplog, mocker):
assert cud.call_count == 1
assert csf.call_count == 1
assert len(caplog.record_tuples) == len_caplog_before
def test_start_new_strategy(mocker, caplog):