From 395e7783eb9a680e40bfe6471236939cc8bcbc25 Mon Sep 17 00:00:00 2001 From: Chris PeBenito Date: Mon, 17 Apr 2023 10:16:51 -0400 Subject: [PATCH] tests.yml: Add test for installing via pip. Signed-off-by: Chris PeBenito --- .github/workflows/tests.yml | 10 ++++------ tox.ini | 4 ++++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f0f2997..7fc1f1b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -24,6 +24,7 @@ jobs: - {python: '3.6', tox: lint} - {python: '3.6', tox: mypy} - {python: '3.6', tox: coverage} + - {python: '3.6', tox: install} steps: - uses: actions/checkout@v3 @@ -43,12 +44,9 @@ jobs: gettext \ libaudit-dev \ libbz2-dev \ - libpcre3-dev \ - python3-pip + libpcre3-dev - sudo pip3 install \ - cython \ - setuptools \ + sudo python -m pip install -U \ tox - name: Configure environment @@ -82,4 +80,4 @@ jobs: - name: Run test run: | export LD_LIBRARY_PATH="${SEPOL_SRC}/src:${SELINUX_SRC}/src:${LD_LIBRARY_PATH}" - tox -vv -e ${{ matrix.build-opts.tox }} + tox -e ${{ matrix.build-opts.tox }} diff --git a/tox.ini b/tox.ini index a512e8a..3e61bbb 100644 --- a/tox.ini +++ b/tox.ini @@ -46,6 +46,10 @@ commands = mypy -p setools mypy sechecker mypy apol +[testenv:install] +deps = {[testenv]deps} +commands = {envpython} -m pip install --use-pep517 . + [testenv] passenv = USERSPACE_SRC deps = networkx>=2.0