diff --git a/.github/workflows/run-tests-on-push-or-merge-pr-master.yml b/.github/workflows/run-tests-on-push-or-merge-pr-master.yml index 5e05561..e47748e 100644 --- a/.github/workflows/run-tests-on-push-or-merge-pr-master.yml +++ b/.github/workflows/run-tests-on-push-or-merge-pr-master.yml @@ -20,7 +20,7 @@ jobs: uses: goanpeca/setup-miniconda@v2 with: auto-update-conda: true - python-version: 3.11 + python-version: 3.12 - name: Create or update Conda environment shell: bash -l {0} @@ -29,8 +29,17 @@ jobs: - name: Set PYTHONPATH run: echo "PYTHONPATH=$(pwd)" >> $GITHUB_ENV - - - name: Activate Conda environment and run tests + + - name: Run tests and upload coverage run: | conda run -n GridTradingBot python -m pip install --upgrade pip - conda run -n GridTradingBot pytest --cov=core \ No newline at end of file + conda run -n GridTradingBot pytest --cov=core --cov=config --cov=strategies --cov=utils --cov-report=xml --cov-report=term + continue-on-error: true + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v5 + with: + fail_ci_if_error: true + files: ./coverage.xml + token: ${{ secrets.CODECOV_TOKEN }} + verbose: true diff --git a/README.md b/README.md index 6736447..4ddb87d 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ # Grid Trading Bot +[![codecov](https://codecov.io/github/jordantete/grid_trading_bot/graph/badge.svg?token=DOZRQAXAK7)](https://codecov.io/github/jordantete/grid_trading_bot) +[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) + + Open-source Grid Trading Bot implemented in Python, allowing you to backtest and execute grid trading strategies on cryptocurrency markets. The bot is highly customizable and works with various exchanges using the CCXT library. ## Features