-
Notifications
You must be signed in to change notification settings - Fork 38
57 lines (52 loc) · 1.33 KB
/
ci.yml
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
52
53
54
55
56
57
name: Tests
on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- "**.py"
- "poetry.lock"
push:
branches: [main]
paths:
- "**.py"
- "poetry.lock"
workflow_dispatch:
inputs: {}
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
FORCE_COLOR: "1"
permissions:
contents: read
jobs:
build:
strategy:
matrix:
py_version: ["3.8", "3.9", "3.10"]
runs-on: ubuntu-latest
env:
PYTHON_VERSION: ${{ matrix.py_version }}
BQ_PROJECT: ${{ secrets.BQ_PROJECT }}
BQ_DATASET: ${{ secrets.BQ_DATASET }}
BQ_CREDS: ${{ secrets.BQ_CREDS }}
GCS_BUCKET: ${{ secrets.GCS_BUCKET }}
steps:
- uses: actions/checkout@v3
- name: Setup Python ${{ matrix.py_version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.py_version }}
- name: Install Target Bigquery
run: |
python -m pip install --upgrade pip poetry
poetry install
- name: Run SDK Tests
run: |
poetry run pytest -k test_core
- name: Run Bigquery Unit Tests
run: |
poetry run pytest -k test_utils
- name: Run Bigquery Integration Tests
run: |
poetry run pytest -k test_sync