Skip to content

Commit

Permalink
Add install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
gmatteo committed Jul 24, 2024
1 parent 0e2b105 commit 623339d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
conda install abinit -c conda-forge --yes
mpirun -n 1 abinit --version
mpirun -n 1 abinit --build
pip install -r requirements.txt
install.sh
mkdir -p $HOME/.abinit/abipy/
cp abipy_book/data/gh_manager.yml $HOME/.abinit/abipy/manager.yml
cp abipy_book/data/gh_scheduler.yml $HOME/.abinit/abipy/scheduler.yml
Expand Down
4 changes: 2 additions & 2 deletions abipy_book/structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ provided VESTA is already installed on your machine and the binary can be found
To get a structure from the [materials project database](https://www.materialsproject.org), use:

```{code-cell}
# You can pass the api_key or set the env variable PMG_MAPI_KEY in your ~/.pmgrc.yaml files.
si2_mp = Structure.from_mpid("mp-149", api_key=None)
# Remember to set the env variable PMG_MAPI_KEY in your ~/.pmgrc.yaml files.
si2_mp = Structure.from_mpid("mp-149")
print(si2_mp)
```

Expand Down
5 changes: 5 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
set -e # exit on first error

pip install -r requirements.txt
conda install graphviz -c conda-forge --yes
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
invoke
abipy
jupyter-book
graphviz
#ghp-import

0 comments on commit 623339d

Please sign in to comment.