mirror of
https://github.com/SELinuxProject/setools
synced 2025-03-22 11:06:30 +00:00
tests.yml: Add package caching.
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
This commit is contained in:
parent
3b0c2095dc
commit
d67d7071e4
10
.github/workflows/tests.yml
vendored
10
.github/workflows/tests.yml
vendored
@ -62,7 +62,15 @@ jobs:
|
||||
sudo python -m pip install -U \
|
||||
tox
|
||||
|
||||
- name: Build toolchain
|
||||
- name: Cache SELinux userspace
|
||||
uses: actions/cache@v3
|
||||
id: cache-userspace
|
||||
with:
|
||||
path: ${{ env.USERSPACE_SRC }}
|
||||
key: ${{ runner.os }}-selinux-userspace-${{ env.SELINUX_USERSPACE_VERSION }}
|
||||
|
||||
- name: Build SELinux userspace
|
||||
if: ${{ steps.cache-userspace.outputs.cache-hit != 'true' }}
|
||||
run: |
|
||||
# Download current SELinux userspace tools and libraries
|
||||
git clone https://github.com/SELinuxProject/selinux.git ${USERSPACE_SRC} -b ${SELINUX_USERSPACE_VERSION}
|
||||
|
6
setup.py
6
setup.py
@ -165,5 +165,9 @@ setup(name='setools',
|
||||
# setup also requires libsepol and libselinux
|
||||
# C libraries and headers to compile.
|
||||
setup_requires=['setuptools', 'Cython>=0.27'],
|
||||
install_requires=['setuptools', 'networkx>=2.0']
|
||||
install_requires=['setuptools'],
|
||||
extras_require={
|
||||
"analysis": "networkx>=2.0",
|
||||
"test": "tox"
|
||||
}
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user