mirror of
https://github.com/KhizarImran/backtestingfx.git
synced 2026-08-05 00:07:46 +00:00
d54c3827b8
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.
25 lines
638 B
YAML
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
|