Smoke Tests #120
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: smoke tests | |
# only build on merges to main | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
# Run every Sunday | |
- cron: '0 0 * * 0' | |
jobs: | |
test: | |
name: smoke-tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 1 | |
- name: set up R | |
shell: bash | |
run: | | |
export GITHUB_ACTIONS="true" | |
${GITHUB_WORKSPACE}/smoke_tests/setup.sh | |
- name: run smoke tests | |
shell: bash | |
run: | | |
R CMD INSTALL . | |
TEST_DATA_DIR=$(pwd)/smoke_tests/test_data | |
NUM_PARALLEL=4 | |
${GITHUB_WORKSPACE}/smoke_tests/test.sh ${TEST_DATA_DIR} ${NUM_PARALLEL} |