Skip to content

fix(api): specify pydantic version in SERVE_REQUIREMENTS #512

fix(api): specify pydantic version in SERVE_REQUIREMENTS

fix(api): specify pydantic version in SERVE_REQUIREMENTS #512

name: Run Integration Tests
on:
push:
branches: [main]
pull_request:
types: [assigned, opened, synchronize, reopened]
paths-ignore:
- "README.md"
schedule:
- cron: '30 5 * * *' # every day at 5:30 UTC
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
run:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
deps: ["pydantic==1.10.12", "pydantic==2.5.0"]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install dependencies
run: |
pip install --upgrade pip wheel
pip install -e 'projects/fal[test]' ${{ matrix.deps }}
- name: Run integration tests
env:
FAL_KEY: ${{ secrets.FAL_CLOUD_KEY_ID }}:${{ secrets.FAL_CLOUD_KEY_SECRET }}
FAL_HOST: api.${{ vars.FAL_CLOUD_INTEGRATION_TEST_HOST }}
run: |
pytest -n auto -v projects/fal/tests