Skip to content

Commit

Permalink
address CI failure
Browse files Browse the repository at this point in the history
  • Loading branch information
MoonBoi9001 committed Jan 10, 2025
1 parent bdfd1e9 commit 42b0ddc
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 21 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: CI pipeline

on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened]

env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full
Expand All @@ -15,13 +13,18 @@ jobs:
lint:
name: Lint and test
runs-on: ubuntu-latest
if: |
!contains(github.event.pull_request.files, '.py') &&
!contains(github.event.pull_request.files, '.yml') &&
!contains(github.event.pull_request.files, '.gitignore') &&
!contains(github.event.pull_request.files, 'README.md')
steps:
- name: Checkout sources
uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: Swatinem/rust-cache@v2
- run: cargo check --all-targets --all-features
- run: cargo test --verbose -- --nocapture
- run: cargo test --verbose -- --nocapture

docker-build-and-push:
name: Docker build
Expand All @@ -48,4 +51,4 @@ jobs:
uses: docker/build-push-action@v4
with:
push: true
tags: ghcr.io/${{ github.repository_owner }}/graphix:latest
tags: ghcr.io/${{ github.repository_owner }}/graphix:latest
11 changes: 8 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
name: Tests
name: POI Monitor Tests

on:
push:
paths:
- 'services/poi_monitor/**'
branches: [ main ]
pull_request:
paths:
- 'services/poi_monitor/**'
branches: [ main ]

jobs:
test:
poi-monitor-test:
runs-on: ubuntu-latest

services:
Expand Down Expand Up @@ -43,7 +47,8 @@ jobs:
- name: Run tests
run: |
cd services/poi_monitor
pytest tests/ --cov=src --cov-report=xml
pip install -e .
pytest tests/ --cov=src --cov-report=term-missing
env:
POSTGRES_HOST: localhost
POSTGRES_PORT: 5433
Expand Down
15 changes: 1 addition & 14 deletions configs/readonly.graphix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,4 @@ chains:
sampleTimestamp: "2024-02-22T19:12:21+01:00"
avgBlockTimeInMsecs: 438 # https://dune.com/queries/2009572

sources:
- table: live_pois
graphql:
queryName: livePois
description: "Retrieve live proofs of indexing (PoIs)."
fields:
- name: id
type: Int
- name: sg_deployment_id
type: Int
- name: indexer_id
type: Int
- name: poi_id
type: Int
sources: []

0 comments on commit 42b0ddc

Please sign in to comment.