-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
43 changed files
with
1,427 additions
and
2,781 deletions.
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 |
---|---|---|
|
@@ -16,7 +16,8 @@ jobs: | |
matrix: | ||
omp: [OFF, ON] | ||
lapack: [OFF, ON] | ||
name: "(OpenMP, Lapack) =" | ||
python-version: ["3.7", "3.8"] | ||
name: "(OpenMP, Lapack, Python) =" | ||
|
||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
@@ -30,35 +31,10 @@ jobs: | |
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install Sphinx and Breathe | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install python3-sphinx python3-sphinx-rtd-theme python3-breathe python3-nbsphinx | ||
- name: Run Doxygen | ||
uses: mattnotmitt/[email protected] | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
# Path to Doxyfile | ||
doxyfile-path: "./Doxyfile" # default is ./Doxyfile | ||
# Working directory | ||
working-directory: "./docs" # default is . | ||
|
||
- name: Run Sphinx | ||
run: | | ||
cd docs | ||
pwd | ||
ls | ||
make html | ||
- name: Publish the docs | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# Default Doxyfile build documentation to html directory. | ||
# Change the directory if changes in Doxyfile | ||
publish_dir: ./docs/build/html | ||
if: github.event_name == 'pull_request' && matrix.lapack == 'on' && matrix.omp == 'on' | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Build | ||
run: | | ||
|
@@ -82,27 +58,41 @@ jobs: | |
echo "Lapack ${{ matrix.lapack }}" | ||
cmake .. | ||
cmake --build . -j | ||
cmake --build . -j4 | ||
cp _C_flare* ../flare/bffs/sgp | ||
cd ctests | ||
./tests | ||
- name: Install LAMMPS | ||
run: | | ||
git clone --depth 1 https://github.com/lammps/lammps.git lammps | ||
cd lammps/src | ||
cp pair_hybrid.* pair_lj_cut.* .. | ||
rm pair_*.cpp pair_*.h | ||
mv ../pair_hybrid.* ../pair_lj_cut.* . | ||
cp MANYBODY/pair_tersoff.* . | ||
rm MANYBODY/pair_*.* | ||
rm MANYBODY/fix_*.* | ||
mv pair_tersoff.* MANYBODY/ | ||
cp KOKKOS/pair_kokkos.* . | ||
rm KOKKOS/pair_*.* | ||
mv pair_kokkos.* KOKKOS/ | ||
cd ../.. | ||
cd lammps_plugins | ||
./install.sh $(pwd)/../lammps | ||
cd .. | ||
sudo cp -r ${BUILD_DIR}/External/Eigen3/Eigen /usr/include | ||
cd lammps | ||
mkdir build | ||
cd build | ||
cmake ../cmake -DPKG_KOKKOS=ON -DKokkos_ENABLE_OPENMP=ON -DPKG_MANYBODY=yes | ||
cmake ../cmake -DPKG_KOKKOS=ON -DKokkos_ENABLE_OPENMP=ON -DPKG_MANYBODY=ON | ||
make -j4 | ||
- name: Pip install | ||
run: | | ||
pip install -U codecov pytest pytest-cov pytest_mock | ||
pip install -U codecov pytest pytest-cov pytest_mock Sphinx sphinx-rtd-theme breathe nbsphinx | ||
pip install -r requirements.txt | ||
- name: Patch ASE | ||
|
@@ -122,6 +112,35 @@ jobs: | |
cd tests | ||
pytest test_lammps.py | ||
- name: Install Sphinx and Breathe | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install python3-sphinx python3-sphinx-rtd-theme python3-breathe python3-nbsphinx | ||
- name: Run Doxygen | ||
uses: mattnotmitt/[email protected] | ||
with: | ||
# Path to Doxyfile | ||
doxyfile-path: "./Doxyfile" # default is ./Doxyfile | ||
# Working directory | ||
working-directory: "./docs" # default is . | ||
|
||
- name: Run Sphinx | ||
run: | | ||
cd docs | ||
pwd | ||
ls | ||
make html | ||
- name: Publish the docs | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# Default Doxyfile build documentation to html directory. | ||
# Change the directory if changes in Doxyfile | ||
publish_dir: ./docs/build/html | ||
if: github.event_name == 'pull_request' && matrix.lapack == 'on' && matrix.omp == 'on' | ||
|
||
# - name: Run tutorial | ||
# run: | | ||
# cd tests | ||
|
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
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
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
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.