Skip to content

docs: use units_GPa in ElasticityCalc examples #57

docs: use units_GPa in ElasticityCalc examples

docs: use units_GPa in ElasticityCalc examples #57

Workflow file for this run

name: Test-Notebooks
on:
push:
branches: [main]
paths: ["examples/*.ipynb"]
pull_request:
branches: [main]
paths: ["examples/*.ipynb"]
release: # This workflow is only ran on releases.
types: [published]
workflow_call: # make this workflow reusable by release.yml
workflow_dispatch:
inputs:
task:
type: choice
options: [test]
default: test
description: Run notebook tests.
jobs:
test:
runs-on: ubuntu-latest
container:
image: docker.io/materialyzeai/lammps_gnnp
env:
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION: python
PMG_MAPI_KEY: ${{ secrets.PMG_MAPI_KEY }}
steps:
- uses: actions/checkout@v5
- name: Install dependencies
run: |
pip install mace-torch
pip install -e '.[ci]'
- name: Execute all notebook examples
run: |
pytest --nbmake --nbmake-timeout=2000 examples/*.ipynb