Skip to content

Commit

Permalink
CI add repository_dispatch event for pymatgen_ci_trigger (#835)
Browse files Browse the repository at this point in the history
* CI add repository_dispatch event for pymatgen_ci_trigger

in which case pmg is installed from the POSTed commit SHA (usually master)

* param-case event type

to pymatgen-ci-trigger
  • Loading branch information
janosh authored May 11, 2024
1 parent d22e247 commit 313f809
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
tags: ["v*"]
pull_request:
workflow_dispatch:
repository_dispatch:
types: [pymatgen-ci-trigger]

jobs:
lint:
Expand Down Expand Up @@ -65,6 +67,10 @@ jobs:
pip install torch-runstats
pip install --no-deps nequip==0.5.6
- name: Install pymatgen from master if triggered by pymatgen repo dispatch
if: github.event_name == 'repository_dispatch' && github.event.action == 'pymatgen-ci-trigger'
run: pip install --upgrade 'git+https://github.com/materialsproject/pymatgen@${{ github.event.client_payload.pymatgen_ref }}'

- name: Test
env:
MP_API_KEY: ${{ secrets.MP_API_KEY }}
Expand Down
5 changes: 4 additions & 1 deletion tests/forcefields/test_md.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
}


@pytest.mark.parametrize("ff_name", ["CHGNet", "M3GNet", "MACE", "GAP", "Nequip"])
@pytest.mark.parametrize(
"ff_name",
["CHGNet", "M3GNet", "MACE", "GAP", "Nequip"],
)
def test_ml_ff_md_maker(ff_name, si_structure, sr_ti_o3_structure, test_dir, clean_dir):
n_steps = 5

Expand Down

0 comments on commit 313f809

Please sign in to comment.