forked from learning-process/ppc-2024-autumn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'learning-process:master' into lopatin_i_count_words
- Loading branch information
Showing
72 changed files
with
6,312 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -249,7 +249,7 @@ jobs: | |
sudo apt-get install mpich libmpich* mpi* openmpi-bin | ||
sudo apt-get install libomp-dev | ||
sudo apt-get install valgrind | ||
sudo apt-get install gcovr | ||
sudo apt-get install gcovr lcov | ||
- name: CMake configure | ||
run: > | ||
cmake -S . -B build | ||
|
@@ -265,13 +265,24 @@ jobs: | |
run: | | ||
export OMP_NUM_THREADS=4 | ||
source scripts/run.sh | ||
- name: Generate Coverage Data | ||
- name: Generate gcovr Coverage Data | ||
run: | | ||
cd build | ||
gcovr -r ../ --xml --output ../coverage.xml | ||
cat ../coverage.xml | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: 01474879-5a86-4c59-bd1d-6e29d3ed9550 | ||
files: coverage.xml | ||
- name: Generate lcov Coverage Data | ||
run: | | ||
cd build | ||
lcov --capture --directory . --output-file ../coverage.info | ||
lcov --remove ../coverage.info '*/3rdparty/*' '/usr/*' '*/perf_tests/*' '*/func_tests/*' --output-file ../coverage.info | ||
cd .. | ||
genhtml coverage.info --output-directory cov-report | ||
- name: Upload coverage report artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: cov-report | ||
path: 'cov-report' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
inputs = { | ||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; | ||
flake-utils.url = "github:numtide/flake-utils"; | ||
treefmt-nix.url = "github:numtide/treefmt-nix"; | ||
}; | ||
outputs = { | ||
self, | ||
nixpkgs, | ||
flake-utils, | ||
treefmt-nix, | ||
}: | ||
flake-utils.lib.eachDefaultSystem (system: let | ||
pkgs = import nixpkgs { | ||
inherit system; | ||
}; | ||
py3 = pkgs.python3.withPackages (ps: [ps.xlsxwriter]); | ||
in { | ||
devShells.default = pkgs.mkShell { | ||
packages = with pkgs; [ | ||
gcc | ||
ninja | ||
cmake | ||
openmpi | ||
py3 | ||
cppcheck | ||
]; | ||
}; | ||
formatter = | ||
(treefmt-nix.lib.evalModule pkgs { | ||
projectRootFile = "flake.nix"; | ||
programs.alejandra.enable = true; | ||
}) | ||
.config | ||
.build | ||
.wrapper; | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.