forked from aiidaplugins/aiida-lammps
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🧪 TESTS: Update CI to python 3.7,3.8,3.9 (aiidaplugins#24)
and also for different lammps versions
- Loading branch information
1 parent
5592b68
commit a349766
Showing
12 changed files
with
124 additions
and
66 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 |
---|---|---|
|
@@ -17,7 +17,7 @@ jobs: | |
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7 | ||
python-version: 3.8 | ||
- uses: pre-commit/[email protected] | ||
|
||
tests: | ||
|
@@ -27,17 +27,21 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [3.6, 3.7] | ||
# TODO 3.8 is not compatible with lammps==2019.06.05, | ||
# but the 2020 version changes the test results (1 more trajectory step) | ||
os: [ubuntu-latest] | ||
backend: ['django'] | ||
include: | ||
- python-version: 3.7 | ||
os: ubuntu-latest | ||
lammps-version: "2019.06.05" | ||
backend: django | ||
- python-version: 3.7 | ||
lammps-version: "2019.06.05" | ||
backend: sqlalchemy | ||
- python-version: 3.8 | ||
lammps-version: "2020.12.24" | ||
backend: django | ||
- python-version: 3.9 | ||
lammps-version: "2020.12.24" | ||
backend: django | ||
|
||
runs-on: ${{ matrix.os }} | ||
runs-on: ubuntu-latest | ||
|
||
services: | ||
postgres: | ||
|
@@ -69,7 +73,7 @@ jobs: | |
conda-channels: conda-forge | ||
|
||
- name: install lammps | ||
run: conda install -y lammps==2019.06.05 | ||
run: conda install -y lammps==${{ matrix.lammps-version }} | ||
|
||
- name: Upgrade pip | ||
run: | | ||
|
@@ -89,7 +93,7 @@ jobs: | |
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.7 | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
name: pytests-py3.7 | ||
name: pytests-lammps | ||
flags: pytests | ||
file: ./coverage.xml | ||
fail_ci_if_error: true | ||
|
@@ -102,10 +106,10 @@ jobs: | |
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v2 | ||
- name: Set up Python 3.7 | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7 | ||
python-version: 3.8 | ||
- name: Build package | ||
run: | | ||
pip install wheel | ||
|
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
File renamed without changes.
32 changes: 32 additions & 0 deletions
32
aiida_lammps/tests/test_calculations/test_md_process-eam-2020.yml
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,32 @@ | ||
results: | ||
distance_units: Angstroms | ||
energy: -8.1 | ||
energy_units: eV | ||
errors: [] | ||
parser_class: MdParser | ||
time_units: picoseconds | ||
timestep_picoseconds: 0.001 | ||
units_style: metal | ||
system_data: | ||
array|etotal: | ||
- 101 | ||
array|step: | ||
- 101 | ||
array|temp: | ||
- 101 | ||
units_style: metal | ||
trajectory_data: | ||
aliases: null | ||
compression_method: 8 | ||
elements: | ||
- Fe | ||
field_names: | ||
- element | ||
- x | ||
- y | ||
- z | ||
number_atoms: 2 | ||
number_steps: 101 | ||
timestep_filename: timesteps.txt | ||
traj_filename: trajectory.zip | ||
zip_prefix: step- |
File renamed without changes.
32 changes: 32 additions & 0 deletions
32
aiida_lammps/tests/test_calculations/test_md_process-lennard-jones-2020.yml
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,32 @@ | ||
results: | ||
distance_units: Angstroms | ||
energy: 0.1 | ||
energy_units: eV | ||
errors: [] | ||
parser_class: MdParser | ||
time_units: picoseconds | ||
timestep_picoseconds: 0.001 | ||
units_style: metal | ||
system_data: | ||
array|etotal: | ||
- 101 | ||
array|step: | ||
- 101 | ||
array|temp: | ||
- 101 | ||
units_style: metal | ||
trajectory_data: | ||
aliases: null | ||
compression_method: 8 | ||
elements: | ||
- Ar | ||
field_names: | ||
- element | ||
- x | ||
- y | ||
- z | ||
number_atoms: 2 | ||
number_steps: 101 | ||
timestep_filename: timesteps.txt | ||
traj_filename: trajectory.zip | ||
zip_prefix: step- |
File renamed without changes.
33 changes: 33 additions & 0 deletions
33
aiida_lammps/tests/test_calculations/test_md_process-tersoff-2020.yml
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,33 @@ | ||
results: | ||
distance_units: Angstroms | ||
energy: -17.8 | ||
energy_units: eV | ||
errors: [] | ||
parser_class: MdParser | ||
time_units: picoseconds | ||
timestep_picoseconds: 0.001 | ||
units_style: metal | ||
system_data: | ||
array|etotal: | ||
- 101 | ||
array|step: | ||
- 101 | ||
array|temp: | ||
- 101 | ||
units_style: metal | ||
trajectory_data: | ||
aliases: null | ||
compression_method: 8 | ||
elements: | ||
- Ga | ||
- N | ||
field_names: | ||
- element | ||
- x | ||
- y | ||
- z | ||
number_atoms: 4 | ||
number_steps: 101 | ||
timestep_filename: timesteps.txt | ||
traj_filename: trajectory.zip | ||
zip_prefix: step- |
48 changes: 0 additions & 48 deletions
48
aiida_lammps/tests/test_calculations/test_md_process_reaxff_.yml
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
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