skipping code coverage #82
Workflow file for this run
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: Build and Test | |
on: [push] | |
jobs: | |
build_and_test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Install Requirements | |
run: | | |
sudo apt-get update | |
sudo apt-get install lua5.4 liblua5.4-dev make cmake gcc -y | |
which python3 | |
which lua | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: cpp | |
queries: security-and-quality | |
- name: Build | |
run: | | |
cmake . -DCMAKE_BUILD_TYPE=Debug | |
make -j | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 | |
- name: Test (setup) | |
run: | | |
cp lib/libpylua.so tests/pylua.so | |
cd tests | |
wget https://raw.githubusercontent.com/bluebird75/luaunit/master/luaunit.lua | |
cd .. | |
- name: Test | |
run: | | |
cd tests | |
lua test0.lua | |
lua test1.lua | |
lua test2.lua | |
lua test3.lua | |
lua test4.lua | |
python3 testA.py | |
cd .. | |
- name: Code Coverage (skipping broken) | |
if : false | |
run: | | |
gcov -abcfu CMakeFiles/pylua.dir/src/lua_py.c | |
gcov -abcfu CMakeFiles/pylua.dir/src/py_lua.c | |
gcov -abcfu CMakeFiles/pylua.dir/src/convert.c | |
- name: Upload Code Coverage (skipping broken) | |
if: false | |
uses: codecov/codecov-action@v1 |