diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2021-01-14 20:04:29 +0000 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2021-01-14 20:04:29 +0000 |
| commit | c8fb369a0373d6e931530932ca390b9b2d2d2c1d (patch) | |
| tree | da327063d3e3f55cbe7f133fb95809185c88755b | |
| parent | update gitignore (diff) | |
| download | SyncRNG-c8fb369a0373d6e931530932ca390b9b2d2d2c1d.tar.gz SyncRNG-c8fb369a0373d6e931530932ca390b9b2d2d2c1d.zip | |
Add github workflow for testing
| -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 |
