forked from google/earthengine-catalog
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 940 Bytes
/
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
# Continuous Integration (CI)
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
pip install absl-py
- name: Cache bazel
uses: actions/cache@v3
env:
cache-name: bazel-cache
with:
path: |
~/.cache/bazelisk
~/.cache/bazel
key: ${{ runner.os }}-${{ env.cache-name }}-${{ github.ref }}
restore-keys: ${{ runner.os }}-${{ env.cache-name }}-development
- uses: actions/checkout@v4
- name: Build
run: bazel build --define jsonnet_port=cpp //...
- name: Test Checker
run: bazel test --define jsonnet_port=cpp --test_output=errors //...
- name: Checker
run: bazel-bin/checker/ee_stac_check