incorporate suggested changes to github action from @rbberger

This commit is contained in:
Axel Kohlmeyer 2022-02-08 10:06:30 -05:00
parent 75727ed5af
commit 861195130c
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 11 additions and 5 deletions

View File

@ -17,9 +17,15 @@ jobs:
with:
fetch-depth: 2
- name: Select Python version
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Building LAMMPS via CMake
shell: bash
run: |
python3 -m pip install numpy
cmake -C cmake/presets/windows.cmake \
-D PKG_PYTHON=on \
-S cmake -B build \
@ -28,11 +34,11 @@ jobs:
-D ENABLE_TESTING=on
cmake --build build --config Release
# - name: Run LAMMPS executable
# shell: bash
# run: |
# ./build/Release/lmp.exe -h
# ./build/Release/lmp.exe -in bench/in.lj
- name: Run LAMMPS executable
shell: bash
run: |
./build/Release/lmp.exe -h
./build/Release/lmp.exe -in bench/in.lj
- name: Run Unit Tests
working-directory: build