Skip to content

Commit

Permalink
update github action workflow with codecov and add badge to readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jordantete committed Dec 23, 2024
1 parent 40e0a87 commit 77b1898
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/run-tests-on-push-or-merge-pr-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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
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
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 77b1898

Please sign in to comment.