Skip to content

Commit f0149fa

Browse files
committed
ci: exclude all the tests covering the code in Python mostly
Signed-off-by: Evgeny Vereshchagin <[email protected]>
1 parent 376de9b commit f0149fa

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

.github/workflows/run_tests.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
EXPLICIT_MAKE_VARS="DEBUG=1"
9494
elif [ "${{ matrix.python-ruby-version.other }}" = "sanitizers" ] ; then
9595
sanitizers='-fsanitize=address,undefined'
96-
EXPLICIT_MAKE_VARS="CFLAGS='-g -I$DESTDIR/usr/include $sanitizers' LDFLAGS='-L$DESTDIR/usr/lib $sanitizers' LDLIBS= CPPFLAGS="
96+
EXPLICIT_MAKE_VARS="CFLAGS='-g -I$DESTDIR/usr/include $sanitizers' LDFLAGS='-L$DESTDIR/usr/lib $sanitizers' LDLIBS= CPPFLAGS= OPT_SUBDIRS="
9797
echo "ASAN_OPTIONS=detect_leaks=0" >> $GITHUB_ENV
9898
echo "UBSAN_OPTIONS=print_stacktrace=1:print_summary=1" >> $GITHUB_ENV
9999
else
@@ -175,16 +175,18 @@ jobs:
175175
eval make test $EXPLICIT_MAKE_VARS
176176
echo "::endgroup::"
177177
178-
# Test Python and Ruby wrappers
179-
echo "::group::Test Python and Ruby wrappers"
180-
$PYTHON -c 'import selinux;import selinux.audit2why;import semanage;print(selinux.is_selinux_enabled())'
181-
$RUBY -e 'require "selinux";require "semanage";puts Selinux::is_selinux_enabled()'
182-
echo "::endgroup::"
183-
184-
# Run Python linter, but not on the downloaded refpolicy
185-
echo "::group::scripts/run-flake8"
186-
./scripts/run-flake8
187-
echo "::endgroup::"
178+
if [ "${{ matrix.python-ruby-version.other }}" != "sanitizers" ] ; then
179+
# Test Python and Ruby wrappers
180+
echo "::group::Test Python and Ruby wrappers"
181+
$PYTHON -c 'import selinux;import selinux.audit2why;import semanage;print(selinux.is_selinux_enabled())'
182+
$RUBY -e 'require "selinux";require "semanage";puts Selinux::is_selinux_enabled()'
183+
echo "::endgroup::"
184+
185+
# Run Python linter, but not on the downloaded refpolicy
186+
echo "::group::scripts/run-flake8"
187+
./scripts/run-flake8
188+
echo "::endgroup::"
189+
fi
188190
189191
echo "::group::Test .gitignore and make clean distclean"
190192
# Remove every installed files

0 commit comments

Comments
 (0)