From 0e6c44ac4652a8df288d1fe4214f43802f9313ea Mon Sep 17 00:00:00 2001 From: Leonardo Vencovsky Date: Tue, 17 Jan 2023 11:25:10 +0100 Subject: [PATCH] Preparing pipeline --- .github/workflows/test_suit.yml | 14 ++++++++------ tests/Makefile | 6 ++++-- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test_suit.yml b/.github/workflows/test_suit.yml index 43c680b..af5f983 100644 --- a/.github/workflows/test_suit.yml +++ b/.github/workflows/test_suit.yml @@ -2,7 +2,7 @@ name: Test Suit on: push: - branches: [ master ] + branches: [ master, dev ] jobs: main: @@ -10,14 +10,16 @@ jobs: steps: - uses: actions/checkout@v2 - name: Setup Environment - run: sudo apt install make valgrind gcc python3.8 + run: sudo apt install make valgrind gcc - name: Versions run: | gcc --version \ make --version \ valgrind --version \ - python --version \ - name: Test Suite - run: python autogen.py -e -b -r -nf - # - name: Valgrind Test - # run: make -C ./tests/main valgrind + run: cd tests && make + - name: Upload Coverage + uses: codecov/codecov-action@v3 + with: + directory: ./tests/coverage + verbose: true diff --git a/tests/Makefile b/tests/Makefile index 11957a5..0d19864 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -5,7 +5,9 @@ INCLUDE=-I ../src main: $(CC) ./main.c $(INCLUDE) $(CFLAGS) -o $@.exe valgrind --leak-check=yes ./$@.exe - gcov -p main.gcda + mkdir -p ./coverage + cd ./coverage && gcov -p ../main.gcda clean: - rm ./*.gcov ./*.gcda ./*.gcno ./*.exe -f + rm ./*.gcda ./*.gcno ./*.exe -f + rm ./coverage -rf