@@ -12,45 +12,49 @@ jobs:
1212 max-parallel : 5
1313
1414 steps :
15- # Checkout repository
15+ # 1. Checkout repository
1616 - name : Checkout source
1717 uses : actions/checkout@v4
1818
19- # Setup micromamba and Python environment
19+ # 2. Set up micromamba environment
2020 - name : Setup micromamba with test environment
2121 uses : mamba-org/setup-micromamba@v1
2222 with :
23- environment-file : environment.yml # Make sure uv is included in this file OR:
23+ environment-file : environment.yml
2424 environment-name : test-env
25- create-args : >-
26- uv
27- torch>=2.1.0,<2.6.0
25+ create-args : " "
2826 init-shell : bash
2927 generate-run-shell : true
3028
31- # Install Python dependencies using uv
29+ # 3. Install PyTorch using pip
30+ - name : Install PyTorch with pip
31+ shell : micromamba-shell bash
32+ run : |
33+ pip install "torch<2.6.0,>=2.1.0"
34+
35+ # 4. Install local and dev dependencies using uv
3236 - name : Install Python dependencies with uv
3337 shell : micromamba-shell bash
3438 run : |
3539 uv pip install -e '.[dev]'
3640
37- # Set up environment variables for LAMMPS
41+ # 5. Set up environment variables for LAMMPS
3842 - name : Configure LAMMPS paths
3943 shell : micromamba-shell bash
4044 run : |
4145 echo "LAMMPS_POTENTIALS=$GITHUB_WORKSPACE/mcmc/potentials" >> $GITHUB_ENV
4246 echo "LAMMPS_COMMAND=$(which lmp)" >> $GITHUB_ENV
4347 echo "ASE_LAMMPSRUN_COMMAND=$(which lmp)" >> $GITHUB_ENV
4448
45- # Display configured LAMMPS paths ( for debugging)
49+ # 6. Display environment variables for debugging
4650 - name : Print LAMMPS paths
4751 shell : micromamba-shell bash
4852 run : |
4953 echo "LAMMPS_POTENTIALS = $LAMMPS_POTENTIALS"
5054 echo "LAMMPS_COMMAND = $LAMMPS_COMMAND"
5155 echo "ASE_LAMMPSRUN_COMMAND = $ASE_LAMMPSRUN_COMMAND"
5256
53- # Run tests
57+ # 7. Run test suite
5458 - name : Run tests with pytest
5559 shell : micromamba-shell bash
5660 run : |
0 commit comments