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

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update pipeline
Browse files Browse the repository at this point in the history
bram-vdberg committed Oct 25, 2024

Unverified

This user has not yet uploaded their public signing key.
1 parent a27c353 commit fa20f55
Showing 2 changed files with 15 additions and 16 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -37,14 +37,11 @@ jobs:
with:
python-version: '3.12'

- env:
PREFECT_API_URL: ${{ secrets.PREFECT_API_URL }}
- run: |
python -m pip install --upgrade pip
pip install -r requirements/prefect.txt
pip install -r requirements/prod.txt
- env:
PREFECT_API_URL: ${{ secrets.PREFECT_API_URL }}
run: |
prefect config set PREFECT_API_URL=$PREFECT_API_URL
- run: python -m src.deploy_prefect.deployment
python -m src.deploy_prefect.deployment
22 changes: 12 additions & 10 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
@@ -29,21 +29,23 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
python-version: ["3.10", "3.11"]

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
pip install -r requirements/prod.txt
prefect config set PREFECT_API_URL=$PREFECT_API_URL
python -m src.deploy_prefect.deployment

- name: Install Requirements
run: pip install -r requirements/dev.txt
- name: Unit Tests
run: python -m pytest tests/unit
env:
IPFS_ACCESS_KEY: ${{ secrets.IPFS_ACCESS_KEY }}
- name: Integration Tests
run: python -m pytest tests/integration
env:
PROD_DB_URL: ${{ secrets.PROD_DB_URL }}
BARN_DB_URL: ${{ secrets.BARN_DB_URL }}

0 comments on commit fa20f55

Please sign in to comment.