docs: use units_GPa in ElasticityCalc examples (#243) #60
This file contains hidden or 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
| 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 |