Skip to content

Update python-package-conda_TestAppleSilicon.yml #22

Update python-package-conda_TestAppleSilicon.yml

Update python-package-conda_TestAppleSilicon.yml #22

name: GitHub Action Apple Silicon Test
#A workflow (github action) that tests installation of itsxpress on Apple Silicon (arm64) using conda
on: [push, pull_request]
jobs:
build:
runs-on: macos-14
steps:
- name: Install conda
run: |
curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
bash Miniconda3-latest-MacOSX-x86_64.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
- name: Install Dependencies
run: |
conda init bash
CONDA_SUBDIR=osx-64 conda create -n itsxpressenv -c bioconda -c conda-forge itsxpress
conda init
source activate itsxpressenv
conda config --env --set subdir osx-64
conda install biopython
pip install pyzstd
pip install pytest
git clone https://github.com/USDA-ARS-GBRU/itsxpress.git
cd itsxpress
pip install .
- name: Test with pytest
run: |
source activate itsxpressenv
pytest