Skip to content

Test Iracepy dependency #22

Test Iracepy dependency

Test Iracepy dependency #22

name: UPAC
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
R-and-irace:
- name: Set up R

Check failure on line 14 in .github/workflows/python-unittest.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/python-unittest.yml

Invalid workflow file

You have an error in your yaml syntax on line 14
uses: r-lib/actions/setup-r@v2
with:
r-version: "release"
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: remotes
pak-version: devel
- name: Install github::MLopez-Ibanez/irace
run: |
remotes::install_github('MLopez-Ibanez/irace', upgrade = 'never', build = FALSE)
shell: Rscript {0}
- uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: 'cran::irace'
dependencies: '"hard"'
pak-version: devel
build:
needs: R-and-irace
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with unittest
run: |
python -m unittest tests/unittests.py