Skip to content

Merge pull request #74 from skalenetwork/add-historic-metrics #29

Merge pull request #74 from skalenetwork/add-historic-metrics

Merge pull request #74 from skalenetwork/add-historic-metrics #29

Workflow file for this run

name: Test metrics
on: [push, pull_request]
jobs:
test_proxy:
defaults:
run:
working-directory: metrics
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.12]
env:
ETH_ENDPOINT: ${{ secrets.ETH_ENDPOINT }}
PYTHONPATH: ${{ github.workspace }}/metrics
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install python dependencies
run: pip install -r requirements.txt && pip install -r requirements-dev.txt
- name: Lint with ruff
run: ruff check src/
- name: Run metrics tests
run: pytest tests/