Preparing pipeline
This commit is contained in:
1 parent
bf02cede2b
commit
0e6c44ac46
2 files changed
+12
-8
No files matched your search
@@ -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
|
||||
+4
-2
@@ -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
|
||||
Reference in new issue
Block a user