Merge pull request #1484 from jaden78/pip-packaging #1
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: Build Ajenti and test | |
on: | |
push: | |
branches: 'master' | |
pull_request: | |
branches: 'master' | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ['3.7', '3.8', '3.10'] | |
node-version: [16.x, 18.x, 19.x] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Installing Apt packages | |
run: | | |
sudo apt update | |
sudo apt install python3-dbus python3-lxml python3-pip libaugeas-dev augeas-tools | |
- name: Set up Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install npm dependencies | |
run: | | |
sudo npm install -g npm | |
sudo npm install -g bower babel-cli babel-preset-es2015 babel-plugin-external-helpers less coffee-script | |
sudo npm install babel-cli babel-preset-es2015 babel-plugin-external-helpers | |
- name: Install python dependencies | |
run: | | |
sudo python3 -m pip install --upgrade pip | |
sudo python3 -m pip install wheel setuptools | |
- name: Install Ajenti | |
run: | | |
sudo python3 -m pip install -r ajenti-core/requirements.txt | |
sudo python3 -m pip install -r plugins/core/requirements.txt | |
sudo python3 -m pip install -r plugins/augeas/requirements.txt | |
sudo python3 -m pip install -r plugins/auth_users/requirements.txt | |
sudo python3 -m pip install -r plugins/datetime/requirements.txt | |
sudo python3 -m pip install -r plugins/services/requirements.txt | |
sudo python3 -m pip install -r plugins/terminal/requirements.txt | |
sudo python3 -m pip install ajenti-dev-multitool | |
sudo python3 -m pip install pytest | |
sudo python3 -m pip uninstall -y gevent-socketio-hartwork python-socketio | |
sudo python3 -m pip install python-socketio==5.8.0 | |
- name: Install Bower components | |
run: | | |
sudo ajenti-dev-multitool --bower install || exit 1 | |
sudo ajenti-dev-multitool --build || exit 1 | |
- name: Running pytest Tests | |
run: | | |
cd tests-pytest | |
sudo pytest -s || exit 1 | |
cd .. |