-
Notifications
You must be signed in to change notification settings - Fork 0
002 train path calculation #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
f632acb
e312859
10e0450
f3ceeed
105c985
69f3cf6
5f48256
e5bf2b1
ec2115d
1dbca08
bf85be3
b3bdc43
cf61602
c0143b4
b613e7e
90a5885
f200fce
332f934
df58588
853ab6d
63adb98
90a58a3
703d01f
59a3779
10ef372
bc442e1
e783582
24be904
046a070
ad83fe5
7b2ba11
8b8c258
e162d65
a70a194
ea90256
d2318f2
54bf6a1
14a36f0
88e5daf
25c39e9
da2985c
cf2cbdf
56957af
2156c26
55136d1
ea1cafe
32b1b59
715e9a3
111a5d7
b160dd6
9bebcbc
9696e5a
1fd9b2d
6bbbff5
3ceed4d
9932b70
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| # tp-lib Development Guidelines | ||
|
|
||
| Auto-generated from all feature plans. Last updated: 2026-01-09 | ||
|
|
||
| ## Active Technologies | ||
|
|
||
| - Rust 1.75+ (edition 2021) (002-train-path-calculation) | ||
|
|
||
| ## Project Structure | ||
|
|
||
| ```text | ||
| src/ | ||
| tests/ | ||
| ``` | ||
|
|
||
| ## Commands | ||
|
|
||
| cargo test; cargo clippy | ||
|
|
||
| ## Code Style | ||
|
|
||
| Rust 1.75+ (edition 2021): Follow standard conventions | ||
|
|
||
| ## Recent Changes | ||
|
|
||
| - 002-train-path-calculation: Added Rust 1.75+ (edition 2021) | ||
|
|
||
| <!-- MANUAL ADDITIONS START --> | ||
| <!-- MANUAL ADDITIONS END --> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| name: Coverage | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main, develop] | ||
| pull_request: | ||
| branches: [main] | ||
|
|
||
| jobs: | ||
| coverage: | ||
| name: Generate Coverage Report | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Install Rust toolchain | ||
| uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
| with: | ||
| toolchain: stable | ||
| components: llvm-tools-preview | ||
|
|
||
| - name: Install cargo-llvm-cov | ||
| uses: taiki-e/install-action@v2 | ||
| with: | ||
| tool: cargo-llvm-cov | ||
|
|
||
| - name: Generate coverage report | ||
| run: | | ||
| cargo llvm-cov --lib -p tp-lib-core \ | ||
| --lcov --output-path lcov.info | ||
|
|
||
| - name: Upload coverage to Codecov | ||
| uses: codecov/codecov-action@v4 | ||
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository | ||
| with: | ||
| files: lcov.info | ||
| token: ${{ secrets.CODECOV_TOKEN }} | ||
| fail_ci_if_error: true | ||
|
Comment on lines
+32
to
+38
|
||
| flags: unittests | ||
| name: tp-lib-core-coverage | ||
|
|
||
| - name: Generate HTML report (for artifacts) | ||
| if: always() | ||
| run: | | ||
| cargo llvm-cov --lib -p tp-lib-core \ | ||
| --html --output-dir coverage-report | ||
|
|
||
| - name: Upload HTML report as artifact | ||
| if: always() | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: coverage-report | ||
| path: coverage-report/ | ||
| retention-days: 30 | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 1 appears to include a BOM/zero-width character before
#(often rendered as). This can cause tooling and markdown linters to behave oddly; consider removing the BOM so the file starts with a plain#.