enable full regression tests
This commit is contained in:
35
.github/workflows/full-regression.yml
vendored
35
.github/workflows/full-regression.yml
vendored
@ -43,6 +43,11 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
ccache -z
|
ccache -z
|
||||||
|
python3 -m venv linuxenv
|
||||||
|
source linuxenv/bin/activate
|
||||||
|
python3 -m pip install numpy
|
||||||
|
python3 -m pip install pyyaml
|
||||||
|
python3 -m pip install junit_xml
|
||||||
cmake -S cmake -B build \
|
cmake -S cmake -B build \
|
||||||
-C cmake/presets/gcc.cmake \
|
-C cmake/presets/gcc.cmake \
|
||||||
-C cmake/presets/most.cmake \
|
-C cmake/presets/most.cmake \
|
||||||
@ -62,8 +67,32 @@ jobs:
|
|||||||
cmake --build build
|
cmake --build build
|
||||||
ccache -s
|
ccache -s
|
||||||
|
|
||||||
- name: Run Regression Tests
|
run_regression_tests:
|
||||||
|
- name: Analyze top-level examples folder, split into 8 seperate subfolder lists
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo 'Linux binary is here:'
|
source linuxenv/bin/activate
|
||||||
ls -lh build/lmp
|
python3 tools/regression-tests/run_tests.py \
|
||||||
|
--lmp-bin=build/lmp \
|
||||||
|
--examples-top-level=examples --analyze --num-workers=8
|
||||||
|
|
||||||
|
- name: Run regression tests with 8 workers each processing a list of subfolders
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
idx: [ 0, 1, 2, 3, 4, 5, 6, 7 ]
|
||||||
|
run: |
|
||||||
|
source linuxenv/bin/activate
|
||||||
|
python3 tools/regression-tests/run_tests.py \
|
||||||
|
--lmp-bin=build/lmp \
|
||||||
|
--config-file=tools/regression-tests/config_serial.yaml \
|
||||||
|
--list-input=input-list-${{ matrix.idx }}.txt \
|
||||||
|
--output-file=output-${{ matrix.idx }}.xml \
|
||||||
|
--progress-file=progress-${{ matrix.idx }}.yaml \
|
||||||
|
--log-file=run-${{ matrix.idx }}.log > screen-${{ matrix.idx }}.txt
|
||||||
|
tar -cvf full-regression-test.tar run*.log progress* output* screen*.txt
|
||||||
|
|
||||||
|
- name: Upload artifacts
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: full-regression-test-artifact
|
||||||
|
path: full-regression-test.tar
|
||||||
Reference in New Issue
Block a user