-
Notifications
You must be signed in to change notification settings - Fork 5
42 lines (42 loc) · 1.16 KB
/
checks.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
name: checks
on: [push, pull_request]
jobs:
cpplint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: pip install cpplint
- run: cpplint --recursive .
pylint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: pip install pylint
- run: find . -type f -name "*.py" | xargs pylint
build-test:
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: create build directory
run: mkdir build
- name: create hyperparameters file
run: cp src/ai/mccfr/hyperparameters.h.dev src/ai/mccfr/hyperparameters.h
- name: generate build files
working-directory: build
run: cmake -DCMAKE_BUILD_TYPE=Release ..
- name: build
working-directory: build
run: make
- name: test
working-directory: build
run: ./bin/tests.out