added citation #16
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: build_and_test | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build_and_test: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup conda, install packages, and test oggmap | |
run: | | |
sudo apt-get update | |
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh | |
bash miniconda.sh -b -p $HOME/miniconda | |
source "$HOME/miniconda/etc/profile.d/conda.sh" | |
hash -r | |
conda config --set always_yes yes --set changeps1 no | |
#conda update -q conda | |
# Useful for debugging any issues with conda | |
conda info -a | |
# activate basic env | |
conda activate | |
conda install -c conda-forge mamba | |
# mamba create env | |
mamba env create -q --file environment.yml | |
# activate oggmap env | |
conda activate oggmap_env | |
# Check pip | |
echo pip_path | |
which pip | |
# Install oggmap | |
pip install . | |
# Show installed package | |
conda list | |
# command to run tests | |
pytest -v |