Merge branch 'main' into dependabot/pip/hdbscan-0.8.29 #235
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 with Miniconda and test | |
on: | |
push: | |
paths: | |
- '**.py' | |
# - 'pyproject.toml' | |
# - '!**/*.md' | |
branches: | |
- "**" | |
tags-ignore: | |
- "*.*.*" | |
workflow_dispatch: | |
jobs: | |
linux-pytest: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 5 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
- uses: psf/black@stable #https://black.readthedocs.io/en/stable/integrations/github_actions.html | |
- name: Setup Miniconda | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniconda-version: "latest" | |
auto-update-conda: true | |
activate-environment: mat_discover | |
- name: Install dependencies | |
shell: bash -l {0} | |
run: | | |
conda install git pytest conda-build conda-verify anaconda-client conda-forge::grayskull conda-forge::conda-souschef conda-forge::flit conda-forge::coveralls conda-forge::conda-souschef sgbaird::pqdm sgbaird::elmd | |
{{ PYTHON }} -m pip install ElM2D==0.4.1 | |
- name: Miniconda build | |
shell: bash -l {0} | |
run : | | |
mkdir scratch | |
cp LICENSE scratch/ | |
python run_grayskull.py | |
conda config --append channels conda-forge | |
conda config --append channels sgbaird | |
conda config --set anaconda_upload no | |
cd scratch | |
conda build . | |
cd .. | |
conda install --use-local mat_discover | |
- name: Pytest | |
shell: bash -l {0} | |
run: | | |
export NUMBA_ENABLE_CUDASIM="1" # i.e. disable GPU | |
{{ PYTHON }} -m pytest |