Skip to content

mock historical error candle ut #25

mock historical error candle ut

mock historical error candle ut #25

Workflow file for this run

name: Integration
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
integration:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10' # or the Python version you are using
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 mypy
pip install -r requirements.txt
- name: Run mypy
run: |
mypy --ignore-missing-imports --check-untyped-defs app
- name: Run flake8
run: |
flake8 app
- name: Generate Report
run: |
pip install pytest httpx pytest-asyncio pytest-cov
mkdir -p logs
cp .env.example .env
sed -i 's/^FUGLE_MARKET_API_KEY=.*/FUGLE_MARKET_API_KEY=${{ secrets.FUGLE_MARKET_API_KEY }}/' .env
pytest --cov=app --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}