CI #1942
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| schedule: | |
| - cron: "0 */12 * * *" | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: true | |
| - name: Install dependencies | |
| run: uv sync --frozen | |
| - name: Run Pylint | |
| run: | | |
| uv run pylint --ignore-paths=.venv --fail-on=W,E,F --exit-zero ./ | |
| - name: Run Flake8 | |
| run: | | |
| uv run flake8 . | |
| - name: Run mypy | |
| run: | | |
| # run mypy but exit with 0 even if there are errors | |
| uv run mypy . || true | |
| - name: Run Black | |
| run: | | |
| uv run black --check . | |
| - name: Run unit tests | |
| env: | |
| # api.binance.com geo-blocks US IPs (HTTP 451) and GitHub | |
| # runners are US-hosted; use Binance's public market-data host. | |
| BINANCE_API_HOST: https://data-api.binance.vision | |
| run: uv run pytest ./tests/ |