Skip to content

Use Newton's method to find the sigma for computing neighbor similari… #103

Use Newton's method to find the sigma for computing neighbor similari…

Use Newton's method to find the sigma for computing neighbor similari… #103

Workflow file for this run

on:
push:
branches:
- master
pull_request:
name: uwot comparison
jobs:
build:
name: Compare to uwot reference
runs-on: ubuntu-latest
container: bioconductor/bioconductor_docker:devel
steps:
- uses: actions/checkout@v4
- name: Get latest CMake
uses: lukka/get-cmake@latest
- name: Configure the build
run: cmake -S . -B build -DBUILD_TESTING=OFF
- name: Set the package directory
run: echo "R_PKG_DIR=${R_HOME}/site-library" >> $GITHUB_ENV
- name: Restore the package directory
uses: actions/cache@v4
with:
path: ${{ env.R_PKG_DIR }}
key: preinstalled-packages
- name: Install packages
shell: Rscript {0}
run: |
BiocManager::install(c("uwot", "BiocNeighbors", "Rcpp", "testthat"))
- name: Install the test package
run: R CMD INSTALL tests/R/package
- name: Run the comparisons
shell: Rscript {0}
run: |
setwd("tests/R/package/tests")
source("testthat.R")
- uses: actions/upload-artifact@v2
with:
name: demo-file
path: tests/R/package/tests/testthat/demo.png