Update README.md (#386) #164
This file contains hidden or 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: test data | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| test-data: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
| - name: install mamba | |
| run: | | |
| wget -O Mambaforge.sh "https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-$(uname)-$(uname -m).sh" | |
| bash Mambaforge.sh -b | |
| - name: make new environment | |
| run: | | |
| source "${HOME}/mambaforge/etc/profile.d/conda.sh" | |
| source "${HOME}/mambaforge/etc/profile.d/mamba.sh" | |
| conda activate | |
| mamba create -n phoible r=4 r-dplyr==1.1.1 r-knitr r-purrr r-readr r-stringr r-testthat r-withr | |
| - name: run tests | |
| working-directory: tests | |
| run: | | |
| source "${HOME}/mambaforge/etc/profile.d/conda.sh" | |
| source "${HOME}/mambaforge/etc/profile.d/mamba.sh" | |
| conda activate | |
| mamba activate phoible | |
| Rscript -e "testthat::test_dir('.', stop_on_failure=TRUE)" |