Skip to content

Added pytest for up

Added pytest for up #3

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions

Check failure on line 1 in .github/workflows/condv_env_tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/condv_env_tests.yml

Invalid workflow file

`pull_request, push` is not a valid event name
# 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, push
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-dev
pytest