Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub action #453

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Set up Conda environment and run tests

on: [push, pull_request, workflow_dispatch]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code with submodules
uses: actions/checkout@v2
with:
submodules: recursive # Ensure submodules are checked out

- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: ""
auto-activate-base: true

- name: Update Conda and Install Dependencies
shell: bash -l {0}
run: |
conda update -y -n base conda
conda install -y -n base conda-libmamba-solver
conda install -y anaconda-client -n base
conda config --set solver libmamba
conda env create -y auto-mech/amech-deps
conda activate amech-deps
conda info
conda list
- name: Activate environment, install other dependencies and run pytest on submodules
shell: bash -l {0}
continue-on-error: false
run: |
conda activate amech-deps
pip install git+https://github.com/Auto-Mech/autoio.git@dev#subdirectory=autoio-base
pip install git+https://github.com/Auto-Mech/autoio.git@dev#subdirectory=autoio-interfaces
pip install .
pytest
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Library: AutoChem
[//]: # (Badges)
[![Set up Conda environment and run tests](https://github.com/Auto-Mech/autochem/actions/workflows/install.yml/badge.svg)](https://github.com/Auto-Mech/autochem/actions/workflows/install.yml)
[![CircleCI](https://circleci.com/gh/Auto-Mech/automol/tree/dev.svg?style=shield)](https://circleci.com/gh/Auto-Mech/autoio/tree/dev)
[![Anaconda-Server Badge](https://anaconda.org/auto-mech/automol/badges/version.svg)](https://anaconda.org/auto-mech/autoio)
[![Anaconda-Server Badge](https://anaconda.org/auto-mech/automol/badges/platforms.svg)](https://anaconda.org/auto-mech/autoio)
Expand Down
Loading