-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (28 loc) 路 973 Bytes
/
Copy pathci.yml
File metadata and controls
30 lines (28 loc) 路 973 Bytes
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
name: tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.12"
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
- run: uv sync
- run: uv run ruff check src/ tests/
- run: uv run ruff format --check src/ tests/
- run: uv run mypy src/mt5_pnl_exporter
- run: uv run pre-commit run --all-files
- run: uv run pytest --cov-report=xml
- run: uv build
- run: uv run twine check --strict dist/*
- uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v6.0.2
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: tanem/mt5-pnl-exporter
files: ./coverage.xml