Skip to content

Commit 4585a79

Browse files
authored
Add upload_coverage_report.yml (TheAlgorithms#600)
1 parent 67af125 commit 4585a79

2 files changed

Lines changed: 42 additions & 7 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: upload_coverage_report
3+
4+
# yamllint disable-line rule:truthy
5+
on:
6+
workflow_dispatch:
7+
push:
8+
branches:
9+
- main
10+
pull_request:
11+
12+
env:
13+
REPORT_NAME: "lcov.info"
14+
15+
jobs:
16+
upload_coverage_report:
17+
runs-on: ubuntu-latest
18+
env:
19+
CARGO_TERM_COLOR: always
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: taiki-e/install-action@cargo-llvm-cov
23+
- name: Generate code coverage
24+
run: >
25+
cargo llvm-cov
26+
--all-features
27+
--workspace
28+
--lcov
29+
--output-path "${{ env.REPORT_NAME }}"
30+
- name: Upload coverage to codecov
31+
uses: codecov/codecov-action@v3
32+
with:
33+
files: "${{ env.REPORT_NAME }}"
34+
fail_ci_if_error: true
35+
...

DIRECTORY.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Bit Manipulation
1414
* [Counting Bits](https://github.com/TheAlgorithms/Rust/blob/master/src/bit_manipulation/counting_bits.rs)
1515
* [Highest Set Bit](https://github.com/TheAlgorithms/Rust/blob/master/src/bit_manipulation/highest_set_bit.rs)
16-
* [Sum of Two Integers](https://github.com/TheAlgorithms/Rust/blob/master/src/bit_manipulation/sum_of_two_integers.rs)
16+
* [Sum Of Two Integers](https://github.com/TheAlgorithms/Rust/blob/master/src/bit_manipulation/sum_of_two_integers.rs)
1717
* Ciphers
1818
* [Aes](https://github.com/TheAlgorithms/Rust/blob/master/src/ciphers/aes.rs)
1919
* [Another Rot13](https://github.com/TheAlgorithms/Rust/blob/master/src/ciphers/another_rot13.rs)
@@ -125,7 +125,7 @@
125125
* [Graph Enumeration](https://github.com/TheAlgorithms/Rust/blob/master/src/graph/graph_enumeration.rs)
126126
* [Heavy Light Decomposition](https://github.com/TheAlgorithms/Rust/blob/master/src/graph/heavy_light_decomposition.rs)
127127
* [Kosaraju](https://github.com/TheAlgorithms/Rust/blob/master/src/graph/kosaraju.rs)
128-
* [Lee's Breadth First Search](https://github.com/TheAlgorithms/Rust/blob/master/src/graph/lee.rs)
128+
* [Lee](https://github.com/TheAlgorithms/Rust/blob/master/src/graph/lee.rs)
129129
* [Lowest Common Ancestor](https://github.com/TheAlgorithms/Rust/blob/master/src/graph/lowest_common_ancestor.rs)
130130
* [Minimum Spanning Tree](https://github.com/TheAlgorithms/Rust/blob/master/src/graph/minimum_spanning_tree.rs)
131131
* [Prim](https://github.com/TheAlgorithms/Rust/blob/master/src/graph/prim.rs)
@@ -134,15 +134,15 @@
134134
* [Tarjans Ssc](https://github.com/TheAlgorithms/Rust/blob/master/src/graph/tarjans_ssc.rs)
135135
* [Topological Sort](https://github.com/TheAlgorithms/Rust/blob/master/src/graph/topological_sort.rs)
136136
* [Two Satisfiability](https://github.com/TheAlgorithms/Rust/blob/master/src/graph/two_satisfiability.rs)
137+
* [Lib](https://github.com/TheAlgorithms/Rust/blob/master/src/lib.rs)
137138
* Machine Learning
139+
* [Linear Regression](https://github.com/TheAlgorithms/Rust/blob/master/src/machine_learning/linear_regression.rs)
138140
* Loss Function
139-
* [Mean Absolute Error Loss](https://github.com/TheAlgorithms/Rust/blob/master/src/machine_learning/loss_function/mae_loss.rs)
140-
* [Mean Squared Error Loss](https://github.com/TheAlgorithms/Rust/blob/master/src/machine_learning/loss_function/mse_loss.rs)
141+
* [Mae Loss](https://github.com/TheAlgorithms/Rust/blob/master/src/machine_learning/loss_function/mae_loss.rs)
142+
* [Mse Loss](https://github.com/TheAlgorithms/Rust/blob/master/src/machine_learning/loss_function/mse_loss.rs)
141143
* Optimization
142144
* [Adam](https://github.com/TheAlgorithms/Rust/blob/master/src/machine_learning/optimization/adam.rs)
143145
* [Gradient Descent](https://github.com/TheAlgorithms/Rust/blob/master/src/machine_learning/optimization/gradient_descent.rs)
144-
* [Linear Regression](https://github.com/TheAlgorithms/Rust/blob/master/src/machine_learning/linear_regression.rs)
145-
* [Lib](https://github.com/TheAlgorithms/Rust/blob/master/src/lib.rs)
146146
* Math
147147
* [Abs](https://github.com/TheAlgorithms/Rust/blob/master/src/math/abs.rs)
148148
* [Aliquot Sum](https://github.com/TheAlgorithms/Rust/blob/master/src/math/aliquot_sum.rs)
@@ -154,7 +154,7 @@
154154
* [Baby Step Giant Step](https://github.com/TheAlgorithms/Rust/blob/master/src/math/baby_step_giant_step.rs)
155155
* [Bell Numbers](https://github.com/TheAlgorithms/Rust/blob/master/src/math/bell_numbers.rs)
156156
* [Binary Exponentiation](https://github.com/TheAlgorithms/Rust/blob/master/src/math/binary_exponentiation.rs)
157-
* [Binomial Coefficient](https://github.com/TheAlgorithms/Rust/blob/master/src/math/binary_coefficient.rs)
157+
* [Binomial Coefficient](https://github.com/TheAlgorithms/Rust/blob/master/src/math/binomial_coefficient.rs)
158158
* [Catalan Numbers](https://github.com/TheAlgorithms/Rust/blob/master/src/math/catalan_numbers.rs)
159159
* [Ceil](https://github.com/TheAlgorithms/Rust/blob/master/src/math/ceil.rs)
160160
* [Chinese Remainder Theorem](https://github.com/TheAlgorithms/Rust/blob/master/src/math/chinese_remainder_theorem.rs)

0 commit comments

Comments
 (0)