Merge pull request #3017 from freqtrade/ci_windows_38
CI on windows with python 3.8
This commit is contained in:
commit
4513edf450
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@ -115,7 +115,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ windows-latest ]
|
os: [ windows-latest ]
|
||||||
python-version: [3.7]
|
python-version: [3.7, 3.8]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -130,8 +130,7 @@ jobs:
|
|||||||
if: startsWith(runner.os, 'Windows')
|
if: startsWith(runner.os, 'Windows')
|
||||||
with:
|
with:
|
||||||
path: ~\AppData\Local\pip\Cache
|
path: ~\AppData\Local\pip\Cache
|
||||||
key: ${{ runner.os }}-pip
|
key: ${{ matrix.os }}-${{ matrix.python-version }}-pip
|
||||||
restore-keys: ${{ runner.os }}-pip
|
|
||||||
|
|
||||||
- name: Installation
|
- name: Installation
|
||||||
run: |
|
run: |
|
||||||
|
BIN
build_helpers/TA_Lib-0.4.17-cp38-cp38-win_amd64.whl
Normal file
BIN
build_helpers/TA_Lib-0.4.17-cp38-cp38-win_amd64.whl
Normal file
Binary file not shown.
@ -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"
|
# 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
|
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 -r requirements-dev.txt
|
||||||
pip install -e .
|
pip install -e .
|
||||||
|
@ -448,9 +448,6 @@ def test_create_datadir_failed(caplog):
|
|||||||
|
|
||||||
def test_create_datadir(caplog, mocker):
|
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())
|
cud = mocker.patch("freqtrade.commands.deploy_commands.create_userdata_dir", MagicMock())
|
||||||
csf = mocker.patch("freqtrade.commands.deploy_commands.copy_sample_files", MagicMock())
|
csf = mocker.patch("freqtrade.commands.deploy_commands.copy_sample_files", MagicMock())
|
||||||
args = [
|
args = [
|
||||||
@ -462,7 +459,6 @@ def test_create_datadir(caplog, mocker):
|
|||||||
|
|
||||||
assert cud.call_count == 1
|
assert cud.call_count == 1
|
||||||
assert csf.call_count == 1
|
assert csf.call_count == 1
|
||||||
assert len(caplog.record_tuples) == len_caplog_before
|
|
||||||
|
|
||||||
|
|
||||||
def test_start_new_strategy(mocker, caplog):
|
def test_start_new_strategy(mocker, caplog):
|
||||||
|
Loading…
Reference in New Issue
Block a user