add coveralls

pull/30/head
deadc0de6 1 year ago
parent 8fdaba5aea
commit 30c1af0d15

@ -21,3 +21,9 @@ jobs:
- name: Run tests
run: |
./tests.sh
- name: Coveralls
run: |
pip install coveralls
coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

@ -1,5 +1,5 @@
"github","storage","","2564","2023-03-09 16:20:59","","","2","0","0",""
"workflows","dir","github/workflows","1282","2023-03-09 16:20:59","2023-03-09 16:20:44","","2","","",""
"github","storage","","3208","2023-03-09 16:20:59","","","2","0","0",""
"workflows","dir","github/workflows","1604","2023-03-09 16:20:59","2023-03-09 16:20:44","","2","","",""
"pypi-release.yml","file","github/workflows/pypi-release.yml","691","2023-03-09 16:20:59","2022-10-19 21:00:37","57699a7a6a03e20e864f220e19f8e197","","","",""
"testing.yml","file","github/workflows/testing.yml","641","2023-03-09 16:20:59","2023-03-09 16:20:44","941c01fa956b71133d6b5339824589b7","","","",""
"testing.yml","file","github/workflows/testing.yml","802","2023-03-09 16:20:59","2023-03-09 16:20:44","7144a119ef43adb634654522c12ec250","","","",""
"FUNDING.yml","file","github/FUNDING.yml","17","2023-03-09 16:20:59","2022-10-19 21:00:37","0c6407a84d412c514007313fb3bca4de","","","",""

@ -23,10 +23,10 @@
},
{
"maccess": 1678375244.4870229,
"md5": "f4f4bc5acb9deae488b55f0c9c507120",
"md5": "7144a119ef43adb634654522c12ec250",
"name": "testing.yml",
"relpath": "workflows/testing.yml",
"size": 595,
"size": 802,
"type": "file"
}
],

@ -1,7 +1,7 @@
top
└── storage: github
nbfiles:2 | totsize:2564 | free:0.0% | du:0/0 | date:2023-03-09 16:20:59
├── workflows [nbfiles:2, totsize:1282]
nbfiles:2 | totsize:3208 | free:0.0% | du:0/0 | date:2023-03-09 16:20:59
├── workflows [nbfiles:2, totsize:1604]
│ ├── pypi-release.yml [size:691, md5:57699a7a6a03e20e864f220e19f8e197]
│ └── testing.yml [size:641, md5:941c01fa956b71133d6b5339824589b7]
│ └── testing.yml [size:802, md5:7144a119ef43adb634654522c12ec250]
└── FUNDING.yml [size:17, md5:0c6407a84d412c514007313fb3bca4de]

@ -51,7 +51,7 @@ catalog="${tmpd}/catalog"
# index
${bin} -B index -c --catalog="${catalog}" github .github
cat "${catalog}"
#cat "${catalog}"
echo ""
# compare keys
@ -90,7 +90,9 @@ mod="${tmpd}/native.mod.txt"
cat "${native}" | sed -e 's/free:.*%/free:0.0%/g' \
-e 's/date:....-..-.. ..:..:../date:2023-03-09 16:20:59/g' \
-e 's#du:[^|]* |#du:0/0 |#g' > "${mod}"
#delta -s "tests-ng/assets/github.catalog.native.txt" "${mod}"
if command -v delta; then
delta -s "tests-ng/assets/github.catalog.native.txt" "${mod}"
fi
diff --color=always "tests-ng/assets/github.catalog.native.txt" "${mod}"
# csv
@ -105,8 +107,10 @@ ori="${tmpd}/ori.mod.txt"
cat "tests-ng/assets/github.catalog.csv.txt" | \
sed 's/....-..-.. ..:..:..//g' | \
sed 's/"2","[^"]*","[^"]*",""/"2","0","0",""/g' > "${ori}"
delta -s "${ori}" "${mod}"
#diff "${ori}" "${mod}"
if command -v delta; then
delta -s "${ori}" "${mod}"
fi
diff "${ori}" "${mod}"
# the end
echo "test \"$(basename "$0")\" success"

Loading…
Cancel
Save