Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
Update github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bram-vdberg committed Nov 1, 2024
1 parent 2a5d9bc commit 5bee78d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,15 @@ jobs:
matrix:
python-version: ["3.12"]

env:
PREFECT_API_URL: ${{ secrets.PREFECT_API_URL }}

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- env:
PREFECT_API_URL: ${{ secrets.PREFECT_API_URL }}
- run: |
python -m pip install --upgrade pip
pip install -r requirements/prefect.txt
Expand Down
21 changes: 21 additions & 0 deletions src/deploy_prefect/pr_deployment.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"""Prefect Deployment for Order Rewards Data"""
# pylint: disable=import-error
from prefect import flow # type: ignore
from prefect.runner.storage import GitRepository # type: ignore


# pylint: disable=duplicate-code
if __name__ == "__main__":
git_source = GitRepository(
url="https://github.com/cowprotocol/dune-sync.git",
)
flow.from_source(
source=git_source,
entrypoint="src/deploy_prefect/flows.py:dev_order_rewards",
).deploy(
name="dune-sync-pr-order-rewards",
work_pool_name="cowbarn",
tags=["dev", "solver", "dune-sync"],
description="Run the dune sync order_rewards query",
version="0.0.2",
)

0 comments on commit 5bee78d

Please sign in to comment.