Merge pull request #35 from marzukr/memory-leak #480
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: checks | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
cpplint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- run: pip install cpplint==1.6.1 | |
- run: cpplint --recursive ai/src ai/tests | |
pylint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- run: pip install pylint==3.3.2 | |
- run: find api/src -type f -name "*.py" | xargs pylint | |
build-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repo | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: create hyperparameters file | |
run: cp ai/src/mccfr/hyperparameters.h.dev ai/src/mccfr/hyperparameters.h | |
- name: build | |
run: docker build -t fishbait-ai ./ai | |
- name: test | |
run: docker run fishbait-ai sh -c "cd /build && ./bin/tests.out" | |
- name: check leaks | |
run: docker run fishbait-ai /ai/check_leaks.sh |