From 42b0ddc0b97b79d8f1854feeff65ef48c2132b3d Mon Sep 17 00:00:00 2001 From: MoonBoi9001 Date: Fri, 10 Jan 2025 17:20:14 +0000 Subject: [PATCH] address CI failure --- .github/workflows/ci.yml | 11 +++++++---- .github/workflows/test.yml | 11 ++++++++--- configs/readonly.graphix.yml | 15 +-------------- 3 files changed, 16 insertions(+), 21 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9eb5a45..6d590fb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 @@ -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 \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 09f5e7b..089fd38 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: @@ -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 diff --git a/configs/readonly.graphix.yml b/configs/readonly.graphix.yml index a67bb08..c55fb2c 100644 --- a/configs/readonly.graphix.yml +++ b/configs/readonly.graphix.yml @@ -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: []