Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: Bug report
about: Create a report to help us improve
title: '[BUG] '
labels: bug
assignees: ''
---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Run command '...'
2. With parameters '...'
3. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Environment:**
- OS: [e.g. Ubuntu 22.04]
- Rust version: [e.g. 1.75.0]
- Python version: [e.g. 3.10]
- Zebrad version: [e.g. 1.5.0]
- Lightwalletd version: [e.g. 0.4.14]

**Additional context**
Add any other context about the problem here.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Feature request
about: Suggest an idea for this project
title: '[FEATURE] '
labels: enhancement
assignees: ''
---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is.

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
36 changes: 36 additions & 0 deletions .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Python CI

on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install dependencies
working-directory: ./visualization
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install flake8 black

- name: Lint with flake8
working-directory: ./visualization
run: |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --filename visualize.py
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --filename visualize.py

- name: Check formatting with black
working-directory: ./visualization
run: black --check .
26 changes: 26 additions & 0 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Install protobuf compiler
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler

- name: Fetch proto files
run: ./scripts/fetch_protos.sh

- name: Build
working-directory: ./analyzer
run: cargo build --release --verbose

- name: Run tests
working-directory: ./analyzer
run: cargo test --verbose
42 changes: 40 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,40 @@
/target
results.csv
# Rust
/analyzer/target/
/analyzer/Cargo.lock
**/*.rs.bk
target/
# Proto files
/analyzer/proto/*.proto

# Python
__pycache__/
*.py[cod]
*$py.class
.Python
venv/
env/
*.egg-info/

# Results
/results/*
!/results/.gitkeep
!/results/README.md

# IDE
.vscode/
.idea/
*.swp
*.swo
*~

# OS
.DS_Store
Thumbs.db

# Build artifacts
*.so
*.dylib
*.dll

# Logs
*.log
Loading