Skip to content

Sherelyn magnitude fix #74

Sherelyn magnitude fix

Sherelyn magnitude fix #74

Workflow file for this run

name: CI
on: [pull_request]
jobs:
SEDkit-CI:
name: Python - ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 5
matrix:
os: [macos-latest]
python-version: [ '3.9', '3.10', '3.11' ]
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: |
pip install --upgrade pip
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
conda env update --file env/environment-${PYTHONVERSION}.yml --name sedkit-${{ matrix.python-version }}
env:
PYTHONVERSION: ${{ matrix.python-version }}
- name: Install package
run: |
python setup.py develop --no-deps
- name: Update conda
run: |
conda update --all
- name: Test with pytest
run: |
conda run -n sedkit-${{ matrix.python-version }} pytest