main not master #2
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: Python application | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.12 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.12" | |
- uses: yezz123/setup-uv@v4 | |
- name: Lint, type check, and test | |
- run: | | |
uv run ruff check tradestation/ | |
uv run ruff check tests/ | |
uv run mypy -p tradestation | |
uv run mypy -p tests | |
uv run pytest --cov=tradestation --cov-report=term-missing tests/ --cov-fail-under=95 | |
env: | |
TS_API_KEY: ${{ secrets.TS_API_KEY }} |