chore: version to 1.0.2 #352
Workflow file for this run
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: Unittests [python, R] | |
on: [pull_request, push] | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: r-lib/actions/setup-r@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Clone required data | |
run: | | |
cd ~/work | |
git clone https://github.com/slds-lmu/yahpo_data.git | |
- name: Prepare [python] | |
run: | | |
cd ~/work/yahpo_gym/yahpo_gym/yahpo_gym | |
pip install -e .[test] | |
printf "data_path: ~/work/yahpo_data\n" >> ~/.config/yahpo_gym | |
- name: Run yahpo_gym tests [python] | |
run: | | |
pytest -sv yahpo_gym/tests/ | |
- name: "Prepare [R]" | |
run: | | |
cd ~/work/yahpo_gym/yahpo_gym/yahpo_gym_r | |
sudo apt install libcurl4-openssl-dev libgit2-dev libharfbuzz-dev libfribidi-dev | |
Rscript -e "if (!requireNamespace('remotes')) install.packages('remotes', type = 'source')" | |
Rscript -e "if (getRversion() < '3.2' && !requireNamespace('curl')) install.packages('curl', type = 'source')" | |
Rscript -e "install.packages('devtools')" | |
Rscript -e "install.packages('reticulate')" | |
Rscript -e "remotes::install_local()" | |
- name: Run yahpo_gym tests [R] | |
run: | | |
cd ~/work/yahpo_gym/yahpo_gym/yahpo_gym_r | |
echo "RETICULATE_PYTHON = $(which python)" >> ~/.Renviron | |
Rscript -e "devtools::test()" |