forked from freqtrade/freqtrade
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feat/short
- Loading branch information
Showing
75 changed files
with
594 additions
and
315 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ name: Freqtrade CI | |
on: | ||
push: | ||
branches: | ||
- master | ||
- stable | ||
- develop | ||
tags: | ||
|
@@ -20,7 +19,7 @@ jobs: | |
strategy: | ||
matrix: | ||
os: [ ubuntu-18.04, ubuntu-20.04 ] | ||
python-version: [3.7, 3.8, 3.9] | ||
python-version: ["3.7", "3.8", "3.9", "3.10"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -39,7 +38,7 @@ jobs: | |
|
||
- name: pip cache (linux) | ||
uses: actions/cache@v2 | ||
if: startsWith(matrix.os, 'ubuntu') | ||
if: runner.os == 'Linux' | ||
with: | ||
path: ~/.cache/pip | ||
key: test-${{ matrix.os }}-${{ matrix.python-version }}-pip | ||
|
@@ -50,8 +49,9 @@ jobs: | |
cd build_helpers && ./install_ta-lib.sh ${HOME}/dependencies/; cd .. | ||
- name: Installation - *nix | ||
if: runner.os == 'Linux' | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install --upgrade pip wheel | ||
export LD_LIBRARY_PATH=${HOME}/dependencies/lib:$LD_LIBRARY_PATH | ||
export TA_LIBRARY_PATH=${HOME}/dependencies/lib | ||
export TA_INCLUDE_PATH=${HOME}/dependencies/include | ||
|
@@ -69,7 +69,7 @@ jobs: | |
if: matrix.python-version == '3.9' | ||
|
||
- name: Coveralls | ||
if: (startsWith(matrix.os, 'ubuntu-20') && matrix.python-version == '3.8') | ||
if: (runner.os == 'Linux' && matrix.python-version == '3.8') | ||
env: | ||
# Coveralls token. Not used as secret due to github not providing secrets to forked repositories | ||
COVERALLS_REPO_TOKEN: 6D1m0xupS3FgutfuGao8keFf9Hc0FpIXu | ||
|
@@ -101,23 +101,20 @@ jobs: | |
run: | | ||
mypy freqtrade scripts | ||
- name: Slack Notification | ||
uses: lazy-actions/[email protected] | ||
- name: Discord notification | ||
uses: rjstone/discord-webhook-notify@v1 | ||
if: failure() && ( github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false) | ||
with: | ||
type: ${{ job.status }} | ||
job_name: '*Freqtrade CI ${{ matrix.os }}*' | ||
mention: 'here' | ||
mention_if: 'failure' | ||
channel: '#notifications' | ||
url: ${{ secrets.SLACK_WEBHOOK }} | ||
severity: error | ||
details: Freqtrade CI failed on ${{ matrix.os }} | ||
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }} | ||
|
||
build_macos: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ macos-latest ] | ||
python-version: [3.7, 3.8, 3.9] | ||
python-version: ["3.7", "3.8", "3.9", "3.10"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -136,7 +133,7 @@ jobs: | |
|
||
- name: pip cache (macOS) | ||
uses: actions/cache@v2 | ||
if: startsWith(matrix.os, 'macOS') | ||
if: runner.os == 'macOS' | ||
with: | ||
path: ~/Library/Caches/pip | ||
key: test-${{ matrix.os }}-${{ matrix.python-version }}-pip | ||
|
@@ -147,10 +144,11 @@ jobs: | |
cd build_helpers && ./install_ta-lib.sh ${HOME}/dependencies/; cd .. | ||
- name: Installation - macOS | ||
if: runner.os == 'macOS' | ||
run: | | ||
brew update | ||
brew install hdf5 c-blosc | ||
python -m pip install --upgrade pip | ||
python -m pip install --upgrade pip wheel | ||
export LD_LIBRARY_PATH=${HOME}/dependencies/lib:$LD_LIBRARY_PATH | ||
export TA_LIBRARY_PATH=${HOME}/dependencies/lib | ||
export TA_INCLUDE_PATH=${HOME}/dependencies/include | ||
|
@@ -162,7 +160,7 @@ jobs: | |
pytest --random-order --cov=freqtrade --cov-config=.coveragerc | ||
- name: Coveralls | ||
if: (startsWith(matrix.os, 'ubuntu-20') && matrix.python-version == '3.8') | ||
if: (runner.os == 'Linux' && matrix.python-version == '3.8') | ||
env: | ||
# Coveralls token. Not used as secret due to github not providing secrets to forked repositories | ||
COVERALLS_REPO_TOKEN: 6D1m0xupS3FgutfuGao8keFf9Hc0FpIXu | ||
|
@@ -194,25 +192,21 @@ jobs: | |
run: | | ||
mypy freqtrade scripts | ||
- name: Slack Notification | ||
uses: lazy-actions/[email protected] | ||
- name: Discord notification | ||
uses: rjstone/discord-webhook-notify@v1 | ||
if: failure() && ( github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false) | ||
with: | ||
type: ${{ job.status }} | ||
job_name: '*Freqtrade CI ${{ matrix.os }}*' | ||
mention: 'here' | ||
mention_if: 'failure' | ||
channel: '#notifications' | ||
url: ${{ secrets.SLACK_WEBHOOK }} | ||
|
||
severity: error | ||
details: Test Succeeded! | ||
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }} | ||
|
||
build_windows: | ||
|
||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ windows-latest ] | ||
python-version: [3.7, 3.8] | ||
python-version: ["3.7", "3.8", "3.9", "3.10"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -224,7 +218,6 @@ jobs: | |
|
||
- name: Pip cache (Windows) | ||
uses: actions/cache@preview | ||
if: startsWith(runner.os, 'Windows') | ||
with: | ||
path: ~\AppData\Local\pip\Cache | ||
key: ${{ matrix.os }}-${{ matrix.python-version }}-pip | ||
|
@@ -257,16 +250,13 @@ jobs: | |
run: | | ||
mypy freqtrade scripts | ||
- name: Slack Notification | ||
uses: lazy-actions/[email protected] | ||
- name: Discord notification | ||
uses: rjstone/discord-webhook-notify@v1 | ||
if: failure() && ( github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false) | ||
with: | ||
type: ${{ job.status }} | ||
job_name: '*Freqtrade CI windows*' | ||
mention: 'here' | ||
mention_if: 'failure' | ||
channel: '#notifications' | ||
url: ${{ secrets.SLACK_WEBHOOK }} | ||
severity: error | ||
details: Test Failed | ||
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }} | ||
|
||
docs_check: | ||
runs-on: ubuntu-20.04 | ||
|
@@ -288,14 +278,13 @@ jobs: | |
pip install mkdocs | ||
mkdocs build | ||
- name: Slack Notification | ||
uses: lazy-actions/[email protected] | ||
- name: Discord notification | ||
uses: rjstone/discord-webhook-notify@v1 | ||
if: failure() && ( github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false) | ||
with: | ||
type: ${{ job.status }} | ||
job_name: '*Freqtrade Docs*' | ||
channel: '#notifications' | ||
url: ${{ secrets.SLACK_WEBHOOK }} | ||
severity: error | ||
details: Freqtrade doc test failed! | ||
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }} | ||
|
||
cleanup-prior-runs: | ||
runs-on: ubuntu-20.04 | ||
|
@@ -306,7 +295,7 @@ jobs: | |
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
|
||
# Notify on slack only once - when CI completes (and after deploy) in case it's successfull | ||
# Notify only once - when CI completes (and after deploy) in case it's successfull | ||
notify-complete: | ||
needs: [ build_linux, build_macos, build_windows, docs_check ] | ||
runs-on: ubuntu-20.04 | ||
|
@@ -320,14 +309,13 @@ jobs: | |
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Slack Notification | ||
uses: lazy-actions/[email protected] | ||
- name: Discord notification | ||
uses: rjstone/discord-webhook-notify@v1 | ||
if: always() && steps.check.outputs.has-permission && ( github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false) | ||
with: | ||
type: ${{ job.status }} | ||
job_name: '*Freqtrade CI*' | ||
channel: '#notifications' | ||
url: ${{ secrets.SLACK_WEBHOOK }} | ||
severity: info | ||
details: Test Completed! | ||
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }} | ||
|
||
deploy: | ||
needs: [ build_linux, build_macos, build_windows, docs_check ] | ||
|
@@ -385,7 +373,7 @@ jobs: | |
- name: Set up Docker Buildx | ||
id: buildx | ||
uses: crazy-max/ghaction-docker-buildx@v1 | ||
uses: crazy-max/ghaction-docker-buildx@v3.3.1 | ||
with: | ||
buildx-version: latest | ||
qemu-version: latest | ||
|
@@ -400,17 +388,13 @@ jobs: | |
run: | | ||
build_helpers/publish_docker_multi.sh | ||
- name: Slack Notification | ||
uses: lazy-actions/[email protected] | ||
- name: Discord notification | ||
uses: rjstone/discord-webhook-notify@v1 | ||
if: always() && ( github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false) | ||
with: | ||
type: ${{ job.status }} | ||
job_name: '*Freqtrade CI Deploy*' | ||
mention: 'here' | ||
mention_if: 'failure' | ||
channel: '#notifications' | ||
url: ${{ secrets.SLACK_WEBHOOK }} | ||
severity: info | ||
details: Deploy Succeeded! | ||
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }} | ||
|
||
|
||
deploy_arm: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM python:3.9.9-slim-bullseye as base | ||
FROM python:3.10.0-slim-bullseye as base | ||
|
||
# Setup env | ||
ENV LANG C.UTF-8 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
# Downloads don't work automatically, since the URL is regenerated via javascript. | ||
# Downloaded from https://www.lfd.uci.edu/~gohlke/pythonlibs/#ta-lib | ||
|
||
python -m pip install --upgrade pip | ||
python -m pip install --upgrade pip wheel | ||
|
||
$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.21-cp37-cp37m-win_amd64.whl | ||
pip install build_helpers\TA_Lib-0.4.22-cp37-cp37m-win_amd64.whl | ||
} | ||
if ($pyv -eq '3.8') { | ||
pip install build_helpers\TA_Lib-0.4.21-cp38-cp38-win_amd64.whl | ||
pip install build_helpers\TA_Lib-0.4.22-cp38-cp38-win_amd64.whl | ||
} | ||
if ($pyv -eq '3.9') { | ||
pip install build_helpers\TA_Lib-0.4.21-cp39-cp39-win_amd64.whl | ||
pip install build_helpers\TA_Lib-0.4.22-cp39-cp39-win_amd64.whl | ||
} | ||
if ($pyv -eq '3.10') { | ||
pip install build_helpers\TA_Lib-0.4.22-cp310-cp310-win_amd64.whl | ||
} | ||
|
||
pip install -r requirements-dev.txt | ||
pip install -e . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.