Add Pytest Workflow for YARP enumeration and dative bonds #1
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: Python application test | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' # Specify the Python version | |
- name: Install dependencies | |
run: | | |
#python -m pip install --upgrade pip | |
if [ -f pytest_requirements.txt ]; then | |
pip install -r pytest_requirements.txt; | |
fi | |
pip install numpy | |
pip install rdkit | |
pip install scipy | |
pip install . | |
#if [ -f env.yaml ]; then | |
# #conda install --file env.yaml | |
# conda env create -f env.yaml | |
#fi | |
- name: Run pytest | |
run: | | |
#conda activate yarp | |
cd examples/; pytest -s # Assuming your tests are in the 'tests' directory |