chore: support both pydantic v1 and v2 #479
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 -e projects/fal ${{ matrix.deps }} | |
pip install pytest pytest-asyncio pytest-xdist pillow | |
- 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 |