diff options
Diffstat (limited to '.github/workflows/build.yml')
| -rw-r--r-- | .github/workflows/build.yml | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..0bf8d3b --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,46 @@ +name: build + +on: + push: + pull_request: + schedule: + - cron: 2 30 * * */7 + +jobs: + R-test: + name: Unit tests for R package + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ] + R: [ '3.5.0', '3.6.0', '4.0.0' ] + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup R + uses: r-lib/actions/setup-r@v1 + with: + r-version: ${{ matrix.R }} + + - name: Build + run: make test_R + + python-test: + name: Unit tests for Python package + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ] + py: [ '3.5', '3.7', '3.9' ] + steps: + - name: Install Python ${{ matrix.py }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.py }} + + - name: Checkout + uses: actions/checkout@v2 + + - name: Build + run: make test_py |
