Octree and Barnes Hut Implementation #79
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
name: coverage | |
on: [push, pull_request] | |
jobs: | |
coverage: | |
runs-on: ubuntu-latest | |
env: | |
HOOTSIM_PATH: "." | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install requirements | |
run: | | |
sudo apt-get update -q | |
sudo apt-get install libyaml-cpp-dev -y | |
sudo apt-get install bc -y | |
- name: Evaluate coverage | |
run: | | |
make coverage > coverage_output.txt | |
cat coverage_output.txt | |
COVERAGE=$(make coverage | grep 'TOTAL COVERAGE' | grep -Eo '[0-9]+') | |
if [ "$COVERAGE" -gt 89 ]; then | |
echo "success" | |
else | |
echo "failure" | |
exit 1 | |
fi |