Skip to content

Commit

Permalink
Use GitHub actions for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
guitargeek committed Aug 9, 2023
1 parent 3fd95f1 commit 86ade83
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 67 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/fastforest-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: FastForest CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
ci:

name: Run CI

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Install Python packages
run: python3 -m pip install scikit-learn xgboost pandas numpy
- name: Build
run: "mkdir build &&
cd build &&
cmake -DEXPERIMENTAL_TMVA_SUPPORT:bool=true .. &&
make &&
sudo make install"
- name: Prepare test data
run: "ln -s $PWD/benchmark/xgboost2tmva.py $PWD/test/xgboost2tmva.py &&
cd test &&
python3 create_test_data.py"
- name: Run tests
run: "cd test &&
../build/test/fastforest-tests"
66 changes: 0 additions & 66 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Minimal library code to deploy [XGBoost](https://xgboost.readthedocs.io/en/latest/) models in C++.

[![Build Status](https://app.travis-ci.com/guitargeek/XGBoost-FastForest.svg?branch=master)](https://app.travis-ci.com/guitargeek/XGBoost-FastForest) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4109412.svg)](https://doi.org/10.5281/zenodo.4109412)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4109412.svg)](https://doi.org/10.5281/zenodo.4109412)

In science, it is very common to prototype algorithms with Python and then put them in production with fast C++ code.
Transitioning models from Python to C++ should be as easy as possible to make sure new ideas can be tried out rapidly.
Expand Down

0 comments on commit 86ade83

Please sign in to comment.