Files
backtestingfx/.github/workflows/ci.yml
T
KhizarImran d54c3827b8 chore: fix clippy warnings and enforce clippy in CI
Replace four map_or(false, ..) calls in check_sl_tp with is_some_and, which
reads closer to the intent ("there is a stop and price hit it").

CI now runs `cargo clippy --all-targets -- -D warnings` in place of
`cargo check` — clippy is a superset, so this is more coverage in one
fewer step, and -D warnings stops the lint debt building back up.
2026-08-02 22:28:59 +01:00

25 lines
638 B
YAML

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: actions/setup-python@v5
with:
python-version: "3.12"
# clippy does everything cargo check does, so it replaces it rather than adding to it
- run: cargo clippy --all-targets -- -D warnings
- run: cargo test
- run: python -m pip install ".[report]"
- run: python -m unittest discover -s "$GITHUB_WORKSPACE/tests"
working-directory: /tmp