Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Service Quality Oracle for The Graph Protocol - Evaluates indexer performance and determines issuance rewards eligibility

Notifications You must be signed in to change notification settings

graphprotocol/rewards-eligibility-oracle

Open more actions menu

Repository files navigation

CI/CD Pipeline

Workflows

CI (ci.yml)

  • Code Quality: Custom ruff script, MyPy, syntax validation
  • Docker Build: Image build and compose validation
  • Runs on: PRs and pushes to main

Tests (tests.yml)

  • Unit/Integration Tests: Auto-detects and runs tests when they exist
  • Runs on: PRs and pushes to main

Security (security.yml)

  • Daily Scans: Dependencies (Safety), code security (Bandit), secrets (TruffleHog), Docker (Trivy)
  • Runs on: Daily 2 AM UTC, PRs, pushes to main

PR Check (pr-check.yml)

  • Basic Validation: Non-empty PR title/description, merge conflict check
  • Runs on: PRs to main

Local Development

Before pushing:

# Setup venv
python3 -m venv venv
source venv/bin/activate

# Install requirements
pip install -r requirements.txt

# Use the custom ruff script for linting (includes SQL formatting and aggressive linting)
./scripts/ruff_check_format_assets.sh

Optional checks:

mypy src/ --ignore-missing-imports
bandit -r src/

Requirements

  • Non-empty PR title/description
  • Pass code quality checks (ruff script must not make changes)
  • Docker must build successfully
  • No merge conflicts

Tests

Create test files in tests/ directory - CI will auto-detect and run them.

About

Service Quality Oracle for The Graph Protocol - Evaluates indexer performance and determines issuance rewards eligibility

Resources

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •  

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.