Skip to content
This repository was archived by the owner on Mar 29, 2023. It is now read-only.

Commit c5c86ef

Browse files
authored
ci: run system tests nightly and post-submit (#11)
* docs: link to BigQuery and Ibis in README
1 parent 95e066f commit c5c86ef

File tree

4 files changed

+65
-15
lines changed

4 files changed

+65
-15
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: System Tests (PR)
2+
3+
on:
4+
pull_request_target:
5+
types: [ labeled ]
6+
7+
jobs:
8+
build:
9+
name: System Tests
10+
# Since this has access to secrets, only run if the PR has manually been
11+
# deemed 'safe' to run by a maintainer.
12+
# https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
13+
if: ${{ github.event.label.name == 'run-ci' }}
14+
runs-on: ubuntu-latest
15+
env:
16+
BACKENDS: "bigquery"
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
python_version: ["3.7", "3.8", "3.9"]
21+
steps:
22+
- name: checkout
23+
uses: actions/checkout@v2
24+
with:
25+
ref: ${{ github.event.pull_request.head.sha }}
26+
27+
- name: set up python ${{ matrix.python-version }}
28+
uses: actions/setup-python@v2
29+
with:
30+
python-version: ${{ matrix.python-version }}
31+
32+
- name: checkout ibis
33+
uses: actions/checkout@v2
34+
with:
35+
repository: ibis-project/ibis
36+
path: ibis
37+
38+
- name: install dependencies
39+
run: ./ci/install_deps.sh
40+
41+
- name: set up bigquery credentials
42+
run: ./ci/decrypt_secret.sh
43+
env:
44+
GCLOUD_KEY_PASSPHRASE: ${{ secrets.GCLOUD_KEY_PASSPHRASE }}
45+
46+
- name: run tests
47+
run: GOOGLE_BIGQUERY_PROJECT_ID="ibis-gbq" GOOGLE_APPLICATION_CREDENTIALS="$HOME/secrets/gcloud-service-key.json" python -m pytest tests

.github/workflows/system-tests.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,24 @@
11
name: System Tests
22

33
on:
4-
pull_request_target:
5-
types: [ labeled ]
4+
push:
5+
branches: master
6+
schedule:
7+
- cron: 0 2 * * *
68

79
jobs:
810
build:
911
name: System Tests
10-
# Since this has access to secrets, only run if the PR has manually been
11-
# deemed 'safe' to run by a maintainer.
12-
# https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
13-
if: ${{ github.event.label.name == 'run-ci' }}
1412
runs-on: ubuntu-latest
1513
env:
1614
BACKENDS: "bigquery"
1715
strategy:
1816
fail-fast: false
1917
matrix:
20-
python_version: ["3.7", "3.9"]
18+
python_version: ["3.7", "3.8", "3.9"]
2119
steps:
2220
- name: checkout
2321
uses: actions/checkout@v2
24-
with:
25-
ref: ${{ github.event.pull_request.head.sha }}
2622

2723
- name: set up python ${{ matrix.python-version }}
2824
uses: actions/setup-python@v2
@@ -36,11 +32,7 @@ jobs:
3632
path: ibis
3733

3834
- name: install dependencies
39-
run: |
40-
python -m pip install --upgrade pip
41-
python -m pip install ./ibis
42-
python -m pip install .
43-
python -m pip install pytest
35+
run: ./ci/install_deps.sh
4436

4537
- name: set up bigquery credentials
4638
run: ./ci/decrypt_secret.sh

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# Ibis BigQuery backend
22

3-
ibis-bigquery package
3+
This package provides a [BigQuery](https://cloud.google.com/bigquery) backend
4+
for [Ibis](https://ibis-project.org/).
5+

ci/install_deps.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
set -e
4+
set -x
5+
6+
python -m pip install --upgrade pip
7+
python -m pip install ./ibis
8+
python -m pip install .
9+
python -m pip install pytest

0 commit comments

Comments
 (0)