chore: gitignore .worktrees/ #25
Workflow file for this run
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: build | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| jobs: | |
| lint: | |
| runs-on: [self-hosted, Linux, Build] | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Set up Python 3.13 | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: "3.13" | |
| - name: Install dependencies | |
| run: pip install -e ".[dev]" | |
| - name: Run ruff linter | |
| run: ruff check bfxapi/ | |
| - name: Run ruff formatter check | |
| run: ruff format --check bfxapi/ | |
| - name: Run mypy type checking | |
| run: mypy bfxapi/ | |
| test: | |
| runs-on: [self-hosted, Linux, Build] | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Set up Python 3.13 | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: "3.13" | |
| - name: Install dependencies | |
| run: pip install -e ".[dev]" | |
| - name: Verify import | |
| run: python -c "import bfxapi; print('Import successful')" | |
| - name: Run tests with coverage | |
| run: python -m pytest tests/ -v | |
| - name: Run mypy | |
| run: mypy bfxapi/ |