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 'freqtrade:develop' into develop
- Loading branch information
Showing
70 changed files
with
3,733 additions
and
1,054 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
|
@@ -122,18 +122,18 @@ jobs: | |
details: Freqtrade CI failed on ${{ matrix.os }} | ||
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }} | ||
|
||
build_macos: | ||
build-macos: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ macos-latest ] | ||
os: [ "macos-latest", "macos-13" ] | ||
python-version: ["3.9", "3.10", "3.11"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
check-latest: true | ||
|
@@ -143,39 +143,42 @@ jobs: | |
id: cache | ||
with: | ||
path: ~/dependencies/ | ||
key: ${{ runner.os }}-dependencies | ||
key: ${{ matrix.os }}-dependencies | ||
|
||
- name: pip cache (macOS) | ||
uses: actions/cache@v3 | ||
if: runner.os == 'macOS' | ||
with: | ||
path: ~/Library/Caches/pip | ||
key: test-${{ matrix.os }}-${{ matrix.python-version }}-pip | ||
key: ${{ matrix.os }}-${{ matrix.python-version }}-pip | ||
|
||
- name: TA binary *nix | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: | | ||
cd build_helpers && ./install_ta-lib.sh ${HOME}/dependencies/; cd .. | ||
- name: Installation - macOS | ||
if: runner.os == 'macOS' | ||
run: | | ||
# brew update | ||
# TODO: Should be the brew upgrade | ||
# homebrew fails to update python due to unlinking failures | ||
# https://github.com/actions/runner-images/issues/6817 | ||
rm /usr/local/bin/2to3 || true | ||
rm /usr/local/bin/2to3-3.11 || true | ||
rm /usr/local/bin/2to3-3.12 || true | ||
rm /usr/local/bin/idle3 || true | ||
rm /usr/local/bin/idle3.11 || true | ||
rm /usr/local/bin/idle3.12 || true | ||
rm /usr/local/bin/pydoc3 || true | ||
rm /usr/local/bin/pydoc3.11 || true | ||
rm /usr/local/bin/pydoc3.12 || true | ||
rm /usr/local/bin/python3 || true | ||
rm /usr/local/bin/python3.11 || true | ||
rm /usr/local/bin/python3.12 || true | ||
rm /usr/local/bin/python3-config || true | ||
rm /usr/local/bin/python3.11-config || true | ||
rm /usr/local/bin/python3.12-config || true | ||
brew install hdf5 c-blosc | ||
brew install hdf5 c-blosc libomp | ||
python -m pip install --upgrade pip wheel | ||
export LD_LIBRARY_PATH=${HOME}/dependencies/lib:$LD_LIBRARY_PATH | ||
export TA_LIBRARY_PATH=${HOME}/dependencies/lib | ||
|
@@ -231,7 +234,7 @@ jobs: | |
details: Test Succeeded! | ||
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }} | ||
|
||
build_windows: | ||
build-windows: | ||
|
||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
|
@@ -243,7 +246,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
|
@@ -301,13 +304,13 @@ jobs: | |
details: Test Failed | ||
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }} | ||
|
||
mypy_version_check: | ||
mypy-version-check: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
|
||
|
@@ -321,12 +324,12 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
- uses: pre-commit/[email protected] | ||
|
||
docs_check: | ||
docs-check: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -336,7 +339,7 @@ jobs: | |
./tests/test_docs.sh | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
|
||
|
@@ -362,7 +365,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.9" | ||
|
||
|
@@ -406,10 +409,10 @@ jobs: | |
notify-complete: | ||
needs: [ | ||
build_linux, | ||
build_macos, | ||
build_windows, | ||
docs_check, | ||
mypy_version_check, | ||
build-macos, | ||
build-windows, | ||
docs-check, | ||
mypy-version-check, | ||
pre-commit, | ||
build_linux_online | ||
] | ||
|
@@ -436,44 +439,79 @@ jobs: | |
details: Test Completed! | ||
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }} | ||
|
||
deploy: | ||
needs: [ build_linux, build_macos, build_windows, docs_check, mypy_version_check, pre-commit ] | ||
build: | ||
name: "Build" | ||
needs: [ build_linux, build-macos, build-windows, docs-check, mypy-version-check, pre-commit ] | ||
runs-on: ubuntu-22.04 | ||
|
||
if: (github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'release') && github.repository == 'freqtrade/freqtrade' | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Extract branch name | ||
shell: bash | ||
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})" | ||
id: extract_branch | ||
|
||
- name: Build distribution | ||
run: | | ||
pip install -U setuptools wheel | ||
python setup.py sdist bdist_wheel | ||
pip install -U build | ||
python -m build --sdist --wheel | ||
- name: Upload artifacts 📦 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: freqtrade-build | ||
path: | | ||
dist | ||
retention-days: 10 | ||
|
||
deploy-pypi: | ||
name: "Deploy to PyPI" | ||
needs: [ build ] | ||
runs-on: ubuntu-22.04 | ||
if: (github.event_name == 'release') | ||
environment: | ||
name: release | ||
url: https://pypi.org/p/freqtrade | ||
permissions: | ||
id-token: write | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Download artifact 📦 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: freqtrade-build | ||
path: dist | ||
|
||
- name: Publish to PyPI (Test) | ||
uses: pypa/[email protected] | ||
if: (github.event_name == 'release') | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.pypi_test_password }} | ||
repository_url: https://test.pypi.org/legacy/ | ||
repository-url: https://test.pypi.org/legacy/ | ||
|
||
- name: Publish to PyPI | ||
uses: pypa/[email protected] | ||
if: (github.event_name == 'release') | ||
|
||
|
||
deploy-docker: | ||
needs: [ build_linux, build-macos, build-windows, docs-check, mypy-version-check, pre-commit ] | ||
runs-on: ubuntu-22.04 | ||
|
||
if: (github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'release') && github.repository == 'freqtrade/freqtrade' | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.pypi_password }} | ||
python-version: "3.11" | ||
|
||
- name: Extract branch name | ||
shell: bash | ||
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})" | ||
id: extract_branch | ||
|
||
- name: Dockerhub login | ||
env: | ||
|
@@ -506,10 +544,11 @@ jobs: | |
run: | | ||
build_helpers/publish_docker_multi.sh | ||
deploy_arm: | ||
deploy-arm: | ||
name: "Deploy Docker" | ||
permissions: | ||
packages: write | ||
needs: [ deploy ] | ||
needs: [ deploy-docker ] | ||
# Only run on 64bit machines | ||
runs-on: [self-hosted, linux, ARM64] | ||
if: (github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'release') && github.repository == 'freqtrade/freqtrade' | ||
|
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Pre-commit auto-update | ||
|
||
on: | ||
# every day at midnight | ||
schedule: | ||
- cron: "0 3 * * 2" | ||
# on demand | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
auto-update: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
|
||
|
||
- name: Install pre-commit | ||
run: pip install pre-commit | ||
|
||
- name: Run auto-update | ||
run: pre-commit autoupdate | ||
|
||
- name: Run pre-commit | ||
run: pre-commit run --all-files | ||
|
||
- uses: peter-evans/create-pull-request@v5 | ||
with: | ||
token: ${{ secrets.REPO_SCOPED_TOKEN }} | ||
add-paths: .pre-commit-config.yaml | ||
labels: | | ||
Tech maintenance | ||
branch: update/pre-commit-hooks | ||
title: Update pre-commit hooks | ||
commit-message: "chore: update pre-commit hooks" | ||
committer: Freqtrade Bot <[email protected]> | ||
body: Update versions of pre-commit hooks to latest version. | ||
delete-branch: true |
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
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.
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.