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:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches: [main]
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
|
||||
qa:
|
||||
name: Quality check
|
||||
flake8-lint:
|
||||
runs-on: ubuntu-latest
|
||||
name: Lint
|
||||
steps:
|
||||
- name: Checkout
|
||||
- name: Check out source repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Python
|
||||
- name: Set up Python environment
|
||||
uses: actions/setup-python@v4
|
||||
|
||||
- name: code quality checkout
|
||||
run: |
|
||||
pip install pyudev psutil pypandora
|
||||
pip install pylint
|
||||
pylint ./pandora-box.py
|
||||
with:
|
||||
python-version: "3.11"
|
||||
- name: flake8 Lint
|
||||
uses: py-actions/flake8@v2
|
||||
with:
|
||||
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
|
||||
# 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
|
||||
su - $SUDO_USER -c 'cd pandora; poetry run update --yes'
|
||||
su - $SUDO_USER -c 'cd pandora; ../.local/bin/poetry run update --yes'
|
||||
|
||||
#---------------------
|
||||
# Pandora-box
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue