-
-
Notifications
You must be signed in to change notification settings - Fork 70
47 lines (45 loc) · 1.21 KB
/
python-app.yml
File metadata and controls
47 lines (45 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Python application
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
python-version:
- "3.11"
- "3.12"
- "3.13"
- "3.14"
steps:
- uses: actions/checkout@v5
- name: Install uv and Python
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
python-version: ${{ matrix.python-version }}
- name: Setup uv venv
run: |
uv sync --locked --all-extras --dev
- name: Lint with ruff
run: |
uv run ruff check tastytrade/ tests/
- name: Type check with pyright
run: |
uv run pyright tastytrade/ tests/
- name: Type check with mypy
run: |
uv run mypy tastytrade/
- name: Test with pytest
run: |
uv run pytest --cov=tastytrade --cov-report=term-missing tests/ --cov-fail-under=95 -v
env:
TT_REFRESH_SANDBOX: ${{ secrets.TT_REFRESH_SANDBOX }}
TT_SECRET_SANDBOX: ${{ secrets.TT_SECRET_SANDBOX }}
TT_ACCOUNT: ${{ secrets.TT_ACCOUNT }}
TT_REFRESH: ${{ secrets.TT_REFRESH }}
TT_SECRET: ${{ secrets.TT_SECRET }}