-
Notifications
You must be signed in to change notification settings - Fork 273
48 lines (41 loc) · 1.23 KB
/
presubmit.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
name: CI
on:
pull_request:
branches:
- master
- dev
jobs:
presubmit:
runs-on: ubuntu-latest
steps:
- name: Cancel previous
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- run: | # Needed for presubmit to work.
git fetch origin master --unshallow
git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/master
- name: Setup Python environment
uses: actions/setup-python@v2
with:
python-version: 3.10.8
# Copied from:
# https://docs.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions
- name: Cache pip
uses: actions/cache@v2
with:
# This path is specific to Ubuntu.
path: ~/.cache/pip
# Look to see if there is a cache hit for the corresponding requirements
# file.
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
- name: Install dependencies
run: |
make install-dependencies
- name: Run presubmit checks
run: |
FUZZBENCH_TEST_INTEGRATION=1 make presubmit