fix windows build

This commit is contained in:
Matthias 2019-11-11 10:36:38 +01:00
parent e51a720193
commit d1729a624d
4 changed files with 16 additions and 7 deletions

View File

@ -5,6 +5,7 @@ on:
branches: branches:
- master - master
- develop - develop
- github_actions_2
tags: tags:
pull_request: pull_request:
@ -14,7 +15,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
os: [ ubuntu-18.04] os: [ ubuntu-18.04 ]
python-version: [3.7] python-version: [3.7]
steps: steps:
@ -141,24 +142,30 @@ jobs:
deploy: deploy:
needs: [ build, build_windows ] needs: [ build, build_windows ]
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
if: github.event_name == 'push' || 1 == 1 if: github.event_name == 'push' || github.event_name == 'cron'
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- name: Build and test and push docker image - name: Build and test and push docker image
env: env:
IMAGE_NAME: freqtradeorg/freqtradetests IMAGE_NAME: freqtradeorg/freqtradetests
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
BRANCH_NAME: ${{ steps.extract_branch.outputs.branch }}
# original filter # original filter
# branch in (master, develop, feat/improve_travis) AND (type in (push, cron)) # branch in (master, develop, feat/improve_travis) AND (type in (push, cron))
run: | run: |
build_helpers/publish_docker.sh build_helpers/publish_docker.sh
- name: Build raspberry image - name: Build raspberry image for ${{ steps.extract_branch.outputs.branch }}_pi
uses: elgohr/Publish-Docker-Github-Action@2.7 uses: elgohr/Publish-Docker-Github-Action@2.7
with: with:
name: freqtradeorg/freqtradetests:test_pi name: freqtradeorg/freqtradetests:${{ steps.extract_branch.outputs.branch }}_pi
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
dockerfile: Dockerfile.pi dockerfile: Dockerfile.pi

Binary file not shown.

View File

@ -1,6 +1,8 @@
Invoke-WebRequest -Uri "https://download.lfd.uci.edu/pythonlibs/g5apjq5m/TA_Lib-0.4.17-cp37-cp37m-win_amd64.whl" -OutFile "TA_Lib-0.4.17-cp37-cp37m-win_amd64.whl" # Downloads don't work automatically, since the URL is regenerated via javascript.
# Downloaded from https://www.lfd.uci.edu/~gohlke/pythonlibs/#ta-lib
# 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"
pip install TA_Lib-0.4.17-cp37-cp37m-win_amd64.whl pip install build_helpers\TA_Lib-0.4.17-cp37-cp37m-win_amd64.whl
pip install -r requirements-dev.txt pip install -r requirements-dev.txt
pip install -e . pip install -e .

View File

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
# Replace / with _ to create a valid tag # Replace / with _ to create a valid tag
TAG=$(echo "${GITHUB_REF}" | sed -e "s/\//_/g") TAG=$(echo "${BRANCH_NAME}" | sed -e "s/\//_/g")
echo "Running for ${TAG}" echo "Running for ${TAG}"
# Add commit and commit_message to docker container # Add commit and commit_message to docker container