-
Notifications
You must be signed in to change notification settings - Fork 10
28 lines (28 loc) · 1.01 KB
/
bazel-test.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
name: Bazel Test
on: [push]
jobs:
Bazel-Test:
runs-on: ubuntu-18.04
steps:
- name: Install dead snake python
run: |
sudo add-apt-repository ppa:deadsnakes/ppa &&
sudo apt-get -yq update &&
sudo apt-get -yq install python3.6-minimal python3.6-dev libpython3.6-minimal python3.7-minimal python3.7-dev libpython3.7-minimal python3.8-minimal python3.8-dev libpython3.8-minimal
- name: Check out repository code
uses: actions/checkout@v2
- name: Cache Bazel build state
uses: actions/cache@v2
with:
path: |
~/.cache/bazel
~/.cache/bazelisk
key: bazel
- name: Test
run: cd ${{ github.workspace }} && bazelisk test --config=github-ci //... --keep_going
- name: Archive test outputs
uses: actions/upload-artifact@v2
with:
name: testlogs
path: ${{ github.workspace }}/bazel-out/k8-fastbuildmanylinux2014/testlogs
if-no-files-found: ignore