test if coveralls does correctly comment

This commit is contained in:
Matthias 2019-12-07 15:47:35 +01:00
parent 9e85376a2d
commit fd36e77e59
2 changed files with 10 additions and 10 deletions

View File

@ -64,19 +64,19 @@ jobs:
pip install -e . pip install -e .
- name: Tests - name: Tests
env: # env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} # COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
COVERALLS_SERVICE_NAME: travis-ci # COVERALLS_SERVICE_NAME: travis-ci
TRAVIS: "true" # TRAVIS: "true"
run: | run: |
pytest --random-order --cov=freqtrade --cov-config=.coveragerc pytest --random-order --cov=freqtrade --cov-config=.coveragerc
# Allow failure for coveralls # Allow failure for coveralls
# Fake travis environment to get coveralls working correctly # Fake travis environment to get coveralls working correctly
export TRAVIS_PULL_REQUEST="https://github.com/${GITHUB_REPOSITORY}/pull/$(cat $GITHUB_EVENT_PATH | jq -r .number)" # export TRAVIS_PULL_REQUEST="https://github.com/${GITHUB_REPOSITORY}/pull/$(cat $GITHUB_EVENT_PATH | jq -r .number)"
export TRAVIS_BRANCH=${GITHUB_REF#"ref/heads"} # export TRAVIS_BRANCH=${GITHUB_REF#"ref/heads"}
export CI_BRANCH=${GITHUB_REF#"ref/heads"} # export CI_BRANCH=${GITHUB_REF#"ref/heads"}
echo "${TRAVIS_BRANCH}" # echo "${TRAVIS_BRANCH}"
coveralls || true # coveralls || true
- name: Backtesting - name: Backtesting
run: | run: |

View File

@ -24,7 +24,7 @@ jobs:
script: script:
- pytest --random-order --cov=freqtrade --cov-config=.coveragerc - pytest --random-order --cov=freqtrade --cov-config=.coveragerc
# Allow failure for coveralls # Allow failure for coveralls
# - coveralls || true - coveralls || true
name: pytest name: pytest
- script: - script:
- cp config.json.example config.json - cp config.json.example config.json