-
Notifications
You must be signed in to change notification settings - Fork 8
45 lines (42 loc) · 1.22 KB
/
test.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
name: Test
on:
pull_request:
workflow_call:
secrets:
BIGQUERY_KEY:
required: true
SNOWFLAKE_CONNECTION:
required: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: "true"
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "18.x"
- name: Use Python
uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: GCloud auth
uses: "google-github-actions/auth@v2"
with:
credentials_json: "${{ secrets.BIGQUERY_KEY }}"
- name: Install and test
run: |
python3 -m pip install --upgrade pip --user
python3 -m pip install pip-tools --user
python3 -m pip install -r requirements.dev.txt --user
python3 -m pip install -e . --user
python3 -m pylint src tests
python3 -m yapf --diff --recursive src tests
./scripts/gen-services.sh
./scripts/gen-snowflake-auth.sh
python3 -m pytest --junitxml=junit/test-results.xml -rxXs
env:
CI: true
SNOWFLAKE_CONNECTION: ${{ secrets.SNOWFLAKE_CONNECTION }}