Migrate to new MP API, fix failing examples #38
Workflow file for this run
This file contains 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
# Runs the complete test suite incl. many external dependencies (like Openbabel) | |
name: Tests | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
permissions: | |
contents: read | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ["3.11"] | |
runs-on: ${{ matrix.os }} | |
env: | |
PMG_MAPI_KEY: ${{ secrets.PMG_MAPI_KEY }} | |
PMG_VASP_PSP_DIR: "${{ github.workspace }}/psp" | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v4 | |
- name: Set up micromamba | |
uses: mamba-org/setup-micromamba@main | |
with: | |
environment-name: matgenb | |
init-shell: bash # TODO: is this needed? (might be default) | |
condarc: | | |
channels: | |
- conda-forge | |
create-args: >- | |
python=${{ matrix.python-version }} | |
enumlib | |
packmol | |
bader | |
openbabel | |
openff-toolkit | |
- name: Install uv | |
uses: astral-sh/setup-uv@v4 | |
with: | |
version: "latest" | |
- name: Install dependencies | |
run: | | |
micromamba activate matgenb | |
uv pip install --upgrade -r requirements-ci.txt | |
- name: Run pytest | |
run: | | |
micromamba activate matgenb | |
cd notebooks | |
pytest --ignore-glob=*notest.ipynb --nbmake . |