feat: New spec "/proc/sys/kernel/random/entropy_avail" #4192
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: Insights Core Test | |
on: | |
push: | |
branches: [ master, '3.0'] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
code-test: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
python-versions: [3.6, 3.9, 3.11] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-versions }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-versions }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
- name: flake8 | |
run: | | |
pip install -e .[linting] | |
flake8 . | |
- name: pytest | |
run: | | |
pip install 'urllib3<2' | |
pip install -e .[testing] | |
pytest | |
python27-test: | |
runs-on: ubuntu-latest | |
container: | |
image: python:2.7.18-buster | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 2.7 | |
uses: actions/setup-python@v4 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
- name: flake8 | |
run: | | |
pip install -e .[linting] | |
flake8 . | |
- name: pytest | |
run: | | |
pip install 'urllib3<2' | |
pip install -e .[testing] | |
pytest | |
python26-test: | |
runs-on: ubuntu-latest | |
container: ubuntu:18.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install sudo package | |
run: apt update && apt install sudo | |
- name: install dependencies | |
run: | | |
sudo apt-get install -y --no-install-recommends software-properties-common | |
sudo apt-get install -y --no-install-recommends libssl1.0-dev zlib1g-dev | |
sudo apt-get install -y build-essential git curl unzip file wget tar | |
- name: build python26 | |
run: | | |
CUR_DIR=$(pwd) | |
cd ../ | |
wget https://www.python.org/ftp/python/2.6.9/Python-2.6.9.tgz | |
tar zxf ./Python-2.6.9.tgz | |
sed -e "s:'\/usr\/lib64',:'\/usr\/lib64', '\/usr\/lib/x86_64-linux-gnu',:" ./Python-2.6.9/setup.py -i | |
mkdir ./Python-2.6.9/build && cd ./Python-2.6.9/build | |
../configure --prefix=$HOME/python26 && make && make install | |
sudo update-alternatives --install /usr/bin/python python $HOME/python26/bin/python2.6 1 | |
sudo update-alternatives --set python $HOME/python26/bin/python2.6 | |
cd ${CUR_DIR} | |
- name: build setuptools and pip | |
run: | | |
export PATH=$PATH:/github/home/.local/bin | |
CUR_DIR=$(pwd) | |
mkdir ../tools && cd ../tools | |
curl -L -O https://files.pythonhosted.org/packages/b8/04/be569e393006fa9a2c10ef72ea33133c2902baa115dd1d4279dae55c3b3b/setuptools-36.8.0.zip | |
unzip setuptools-36.8.0.zip && cd setuptools-36.8.0 | |
python setup.py install --user && cd .. | |
curl -L -O https://github.com/pypa/pip/archive/refs/tags/9.0.3.tar.gz | |
tar -xvzf 9.0.3.tar.gz && cd pip-9.0.3 | |
python setup.py install --user | |
cd ${CUR_DIR} | |
- name: get depenencies | |
run: | | |
export PATH=$PATH:/github/home/.local/bin | |
CUR_DIR=$(pwd) | |
cd ../ | |
git clone https://github.com/SteveHNH/jenkins-s2i-example.git pips | |
(cd ./pips/slave26/pip_packages && test -f coverage-4.3.4-cp26-cp26mu-manylinux1_x86_64.whl && mv coverage-4.3.4-cp26-cp26mu-manylinux1_x86_64.whl coverage-4.3.4-py2.py3-none-any.whl) | |
pip install --user --no-index -f ./pips/slave26/pip_packages -r ./pips/slave26/ci_requirements.txt | |
cd ${CUR_DIR} | |
mkdir ../collections_module | |
sudo curl -L -o ./../collections_module/collections.py https://raw.githubusercontent.com/RedHatInsights/insights-core/5c8ca0f2fb3de45908e8d931d40758af34a7997a/.collections.py | |
- name: flake8 | |
run: | | |
export PATH=$PATH:/github/home/.local/bin | |
pip install --user -e .[linting] -f ./pips/slave26/pip_packages | |
flake8 . | |
- name: pytest | |
run: | | |
export PATH=$PATH:/github/home/.local/bin | |
pip install --user -e .[testing] -f ./pips/slave26/pip_packages | |
export PYTHONPATH=${PYTHONPATH}:./../collections_module | |
pytest | |
docs-test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: install dependencies | |
run: | | |
sudo apt-get install pandoc | |
python -m pip install --upgrade pip | |
- name: docs Test | |
run: | | |
pip install docutils==0.17 | |
pip install -e .[docs] | |
sphinx-build -W -b html -qa -E docs docs/_build/html |