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

Commit fa20f55

Browse files
committed
Update pipeline
1 parent a27c353 commit fa20f55

File tree

2 files changed

+15
-16
lines changed

2 files changed

+15
-16
lines changed

.github/workflows/deploy.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,11 @@ jobs:
3737
with:
3838
python-version: '3.12'
3939

40+
- env:
41+
PREFECT_API_URL: ${{ secrets.PREFECT_API_URL }}
4042
- run: |
4143
python -m pip install --upgrade pip
4244
pip install -r requirements/prefect.txt
4345
pip install -r requirements/prod.txt
44-
45-
- env:
46-
PREFECT_API_URL: ${{ secrets.PREFECT_API_URL }}
47-
run: |
4846
prefect config set PREFECT_API_URL=$PREFECT_API_URL
49-
50-
- run: python -m src.deploy_prefect.deployment
47+
python -m src.deploy_prefect.deployment

.github/workflows/pull-request.yaml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,23 @@ jobs:
2929
runs-on: ubuntu-latest
3030
strategy:
3131
matrix:
32-
python-version: ["3.12"]
32+
python-version: ["3.10", "3.11"]
3333

3434
steps:
3535
- uses: actions/checkout@v2
3636
- name: Set up Python ${{ matrix.python-version }}
3737
uses: actions/setup-python@v2
3838
with:
3939
python-version: ${{ matrix.python-version }}
40-
- env:
41-
PREFECT_API_URL: ${{ secrets.PREFECT_API_URL }}
42-
- run: |
43-
python -m pip install --upgrade pip
44-
pip install -r requirements/prefect.txt
45-
pip install -r requirements/prod.txt
46-
prefect config set PREFECT_API_URL=$PREFECT_API_URL
47-
python -m src.deploy_prefect.deployment
48-
4940

41+
- name: Install Requirements
42+
run: pip install -r requirements/dev.txt
43+
- name: Unit Tests
44+
run: python -m pytest tests/unit
45+
env:
46+
IPFS_ACCESS_KEY: ${{ secrets.IPFS_ACCESS_KEY }}
47+
- name: Integration Tests
48+
run: python -m pytest tests/integration
49+
env:
50+
PROD_DB_URL: ${{ secrets.PROD_DB_URL }}
51+
BARN_DB_URL: ${{ secrets.BARN_DB_URL }}

0 commit comments

Comments
 (0)