-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from dcheng2022/master
Merge MOFid 2024
- Loading branch information
Showing
38,453 changed files
with
6,594,329 additions
and
119,355 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# .dockerignore | ||
bin/ | ||
openbabel/build | ||
openbabel/installed |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: run_tests | ||
on: | ||
push: | ||
paths: | ||
- "**.py" | ||
- "Makefile" | ||
- "openbabel/**" | ||
- "eigen/**" | ||
- "src/**" | ||
pull_request: | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Python 3.10 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
- name: Install colordiff | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install colordiff | ||
- name: Build Project | ||
run: | | ||
mkdir Output | ||
make test | ||
- name: Run Unit Tests | ||
run: make unittest | ||
- name: Run Intermediate Tests | ||
run : make intermediatetest | ||
- name: Archive Mismatch Artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: mismatch | ||
path: Mismatch | ||
if-no-files-found: ignore | ||
retention-days: 1 | ||
- name: Run Integration Tests | ||
run: | | ||
python set_paths.py | ||
pip install . | ||
make pytest |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
Mismatch/ | ||
.venv/ | ||
venv/ | ||
.env/ | ||
env/ | ||
*.pyc | ||
Data/ | ||
!README.md | ||
|
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,14 @@ | ||
FROM continuumio/miniconda3 | ||
# MOFid 2024 | ||
FROM python:3.11-bookworm | ||
|
||
# set up conda and deps, per .travis.yml | ||
RUN apt-get update -qq | ||
RUN mkdir -p /usr/share/man/man1/ # required to prevent default-jre installation from crashing | ||
RUN apt-get install -qq default-jre | ||
RUN apt-get install -qq build-essential cmake | ||
LABEL AUTHOR="[email protected]" | ||
LABEL version="2024" | ||
|
||
RUN conda config --set always_yes yes --set changeps1 no | ||
RUN conda create -q -n py2 python=2.7 | ||
|
||
# copy source code from git | ||
WORKDIR /mofid | ||
COPY . /mofid | ||
|
||
# compile openbabel, C++ analysis code, and Python package | ||
RUN make init | ||
RUN python set_paths.py | ||
RUN pip install . | ||
# Disabling conda environment for now and keeping with base Python | ||
#RUN source activate py2 | ||
#RUN pip install . | ||
#RUN conda deactivate | ||
|
||
# then run the code, either interactively or via docker command line | ||
|
||
RUN apt-get update -qq \ | ||
&& apt-get install -qq default-jre gcc-11 g++-11 cmake \ | ||
&& make init \ | ||
&& python set_paths.py \ | ||
&& pip install . \ |
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
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
Oops, something went wrong.