-
Notifications
You must be signed in to change notification settings - Fork 20
88 lines (84 loc) · 2.49 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name:
Test
on:
push
permissions:
contents: read
jobs:
make:
runs-on: ubuntu-20.04
strategy:
matrix:
py: ["3.8"]
pylint: ["==2.9.6"]
go: [ "1.20" ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.py }}
- name: Install pylint
run: pip install --user pylint${{ matrix.pylint }}
- name: pylint
run: |
pylint adapters/python/martian_shell.py
pylint adapters/python/martian.py
pylint test/martian_test.py
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- uses: actions/setup-node@v4
with:
node-version: "18"
cache: "npm"
cache-dependency-path: |
web/martian/yarn.lock
tools/syntax/vscode/yarn.lock
- name: make all
run: make all tarball
- name: darwin build
run: GOOS=darwin go build ./cmd/...
- name: Integration tests
run: make longtests
bazel:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- uses: actions/setup-go@v5
id: setup_go
with:
go-version: ">=1.20"
- name: Show bazel variables
run: |
bazel info
echo "bazel_repository_cache=$(bazel info repository_cache)" >> $GITHUB_ENV
echo "bazel_output_base=$(bazel info output_base)" >> $GITHUB_ENV
- name: Cache bazel build of external repositories
uses: actions/cache@v3
with:
path: |
${{ env.bazel_output_base }}/external
key: bazel-build-cache-${{steps.setup_go.outputs.go-version}}-${{hashFiles('deps.bzl', 'WORKSPACE')}}
restore-keys: |
bazel-build-cache-${{steps.setup_go.outputs.go-version}}
- name: Cache bazel external repositories
uses: actions/cache@v3
with:
path: |
${{ env.bazel_repository_cache }}
key: bazel-repo-cache-${{hashFiles('deps.bzl', 'WORKSPACE', 'web/martian/yarn.lock')}}
restore-keys: |
bazel-repo-cache-
- name: test
run: |
bazel test --nobuild_tests_only \
--verbose_failures \
--discard_analysis_cache \
--notrack_incremental_state \
--nokeep_state_after_build \
//...
- name: Show build timing summary
run: bazel analyze-profile ${{ env.bazel_output_base }}/command.profile.gz