-
Notifications
You must be signed in to change notification settings - Fork 48
51 lines (42 loc) · 1.26 KB
/
integration_tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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.18", "pydantic==2.5.0"]
# TODO: Test Python 3.13
python: ["3.8", "3.12"]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
cache: pip
- name: Install dependencies
run: |
pip install --upgrade pip wheel
# TODO: should we include graphlib as a project dependency?
pip install -e 'projects/fal[test]' graphlib ${{ 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