mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-08-05 13:55:21 +02:00
Merge branch 'main' of github.com:dbarzin/pandora-box
This commit is contained in:
commit
7d84230aaf
2 changed files with 18 additions and 30 deletions
34
.github/workflows/ci.yml
vendored
34
.github/workflows/ci.yml
vendored
|
@ -1,27 +1,23 @@
|
||||||
name: Continuous Integration
|
name: flake8 Lint
|
||||||
|
|
||||||
on:
|
on: [push, pull_request]
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
pull_request:
|
|
||||||
branches: [main]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
flake8-lint:
|
||||||
qa:
|
|
||||||
name: Quality check
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
name: Lint
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Check out source repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
- name: Set up Python environment
|
||||||
- name: Set up Python
|
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
- name: code quality checkout
|
python-version: "3.11"
|
||||||
run: |
|
- name: flake8 Lint
|
||||||
pip install pyudev psutil pypandora
|
uses: py-actions/flake8@v2
|
||||||
pip install pylint
|
with:
|
||||||
pylint ./pandora-box.py
|
exclude: "tests/*"
|
||||||
|
max-line-length: "128"
|
||||||
|
path: "."
|
||||||
|
plugins: "flake8-bugbear==22.1.11 flake8-black"
|
||||||
|
|
||||||
|
|
10
install.sh
10
install.sh
|
@ -121,16 +121,8 @@ wget http://cdn.download.comodo.com/av/updates58/sigs/bases/bases.cav -O /opt/CO
|
||||||
# Configure workers
|
# Configure workers
|
||||||
# su - $SUDO_USER -c 'cd pandora; for file in pandora/workers/*.sample; do cp -i ${file} ${file%%.sample}; done'
|
# su - $SUDO_USER -c 'cd pandora; for file in pandora/workers/*.sample; do cp -i ${file} ${file%%.sample}; done'
|
||||||
|
|
||||||
# Disable all workers
|
|
||||||
su - $SUDO_USER -c 'cd pandora && mkdir pandora/workers/disabled && mv pandora/workers/*.sample pandora/workers/*.py pandora/workers/disabled'
|
|
||||||
|
|
||||||
# select some workers
|
|
||||||
su - $SUDO_USER -c 'cd pandora; cp pandora/workers/disabled/base.* pandora/workers'
|
|
||||||
su - $SUDO_USER -c 'cd pandora; cp pandora/workers/disabled/clamav.* pandora/workers'
|
|
||||||
su - $SUDO_USER -c 'cd pandora; cp pandora/workers/disabled/extractor.* pandora/workers'
|
|
||||||
|
|
||||||
# Update Pandora
|
# Update Pandora
|
||||||
su - $SUDO_USER -c 'cd pandora; poetry run update --yes'
|
su - $SUDO_USER -c 'cd pandora; ../.local/bin/poetry run update --yes'
|
||||||
|
|
||||||
#---------------------
|
#---------------------
|
||||||
# Pandora-box
|
# Pandora-box
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue