File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929
3030 - name : Coverage
3131 if : runner.os == 'Linux'
32- run : gcov src/uuid.c
32+ run : gcov -o dist src/uuid.c
3333
3434 - name : Upload coverage
3535 if : runner.os == 'Linux'
Original file line number Diff line number Diff line change 1- * .pyc
2- .cache
1+ * .gcov
32.pytest_cache /
4- .tox /
5- __pycache__
6- build /
73dist /
Original file line number Diff line number Diff line change @@ -32,21 +32,25 @@ CFLAGS += -DUSE_DEFAULT_ENTRY_POINT
3232endif
3333
3434ifneq ($(DEBUG ) ,)
35- CFLAGS += --coverage
35+ CFLAGS += --coverage
36+ LDFLAGS += --coverage
3637endif
3738
3839all : $(LIB )
3940
4041clean :
4142 $(RM ) -r $(DIST_DIR )
42- $(RM ) * .gcda * .gcno * . gcov
43+ $(RM ) * .gcov
4344
4445print-% :
4546 @echo ' $*=$($*)'
4647
4748test : $(LIB )
4849 uv run --group test pytest --verbose --extension=$(LIB )
4950
50- $(LIB ) : $(SOURCES )
51+ $(LIB ) : $(DIST_DIR ) /uuid.o
52+ $(CC ) $< $(LDFLAGS ) -o $@
53+
54+ $(DIST_DIR ) /uuid.o : $(SOURCES )
5155 mkdir -p $(DIST_DIR )
52- $(CC ) $< $(CFLAGS ) $( LDFLAGS ) -o $@
56+ $(CC ) -c $(CFLAGS ) $< -o $@
You can’t perform that action at this time.
0 commit comments