tests.yml: Add test for installing via pip.

Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
This commit is contained in:
Chris PeBenito 2023-04-17 10:16:51 -04:00
parent 676d22e6e6
commit 395e7783eb
2 changed files with 8 additions and 6 deletions

View File

@ -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 }}

View File

@ -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