-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (36 loc) · 1013 Bytes
/
workflow.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
39
40
41
42
43
name: Mage CI
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, which is the CWD for
# the rest of the steps.
- uses: actions/checkout@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip3 install -r mage/public/parser/requirements.txt;
# Caches and restores the bazel build directory.
- name: Cache bazel build results
uses: actions/[email protected]
env:
cache-name: bazel-cache
with:
path: ~/.cache/bazel
key: ${{ runner.os }}-${{ env.cache-name }}-${{ github.ref }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-master
- name: Build
run: bazel build mage/mage_tests
- name: Run tests
run: bazel test mage/mage_tests --test_output=all