Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: CI

on:
push:
branches: ["**"]
pull_request:

jobs:
backend:
name: Backend checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6

- uses: actions/setup-python@v6
with:
python-version: "3.11"
cache: pip
cache-dependency-path: |
backend/requirements.txt
backend/conf/requirements-testing.txt
backend/conf/requirements-development.txt

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r backend/requirements.txt
python -m pip install -r backend/conf/requirements-testing.txt
python -m pip install -r backend/conf/requirements-development.txt
python -m pip install -e backend/litecoin_scrypt

- name: Compile-check Python sources
run: python backend/dev/python3_port_compile_check.py

- name: Ruff fatal-error gate
run: ruff check --select E9,F63,F7,F82 backend/p2pool backend/run_p2pool.py run_p2pool.py

- name: Unit tests
working-directory: backend
run: python -m twisted.trial p2pool.test.test_data p2pool.test.test_node p2pool.test.bitcoin.test_data

- name: Python dependency audit
run: |
pip-audit -r backend/requirements.txt
pip-audit -r backend/conf/requirements-testing.txt
pip-audit -r backend/conf/requirements-development.txt

- name: Bandit medium/high security gate
run: bandit -q --severity-level medium -r backend/p2pool backend/run_p2pool.py run_p2pool.py -x backend/p2pool/test

frontend:
name: Frontend dependency audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: "22"
- name: Retire.js audit
run: npx --yes retire --path frontend/web-static --outputformat text
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
*.pyc
*.pyo
*~
__pycache__/

/data/
/litecoin_scrypt/build/
/backend/litecoin_scrypt/build/
/_trial_temp*
_trial_temp*/
Makefile.local
.cache/
.pytest_cache/
.ruff_cache/
.pkglist
.pyenv/
.coverage
build/
backend/build/
ltc_scrypt.so
backend/ltc_scrypt.so

.DS_Store
.DS_Store
Loading