-
Notifications
You must be signed in to change notification settings - Fork 66
38 lines (36 loc) · 1.07 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
# 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: Debug Python environment
run: |
pip list
echo $PYTHONPATH
python -c "import sys; print(sys.path)"
- 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