Skip to content

add batch-ks

add batch-ks #11

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Cross-Platform Conda Environment Setup
on: pull_request
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: false
- name: Initialize Conda (ubuntu only) # Windows doesnt require conda initialization
shell: bash -l {0}
if: runner.os == 'Linux'
run: |
conda init bash
source ~/.bashrc
- name: Create environment and install dependencies
shell: bash -l {0}
run: |
conda env create --file=./env.yml
- name: Activate and run tests
shell: bash -l {0}
run: |
conda activate bnd
pytest