Add missing TUs for ConfigNameGenerator and PerformanceResultsSaver #52
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
name: on_push_or_merge_pr_master | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Miniconda | |
uses: goanpeca/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
python-version: 3.11 | |
- name: Create or update Conda environment | |
shell: bash -l {0} | |
run: | | |
conda env create --file environment.yml --name GridTradingBot || conda env update --file environment.yml --name GridTradingBot | |
- name: Set PYTHONPATH | |
run: echo "PYTHONPATH=$(pwd)" >> $GITHUB_ENV | |
- name: Activate Conda environment and run tests | |
run: | | |
conda run -n GridTradingBot python -m pip install --upgrade pip | |
conda run -n GridTradingBot pytest --cov=core |