Skip to content

Migrate to new MP API, fix failing examples #37

Migrate to new MP API, fix failing examples

Migrate to new MP API, fix failing examples #37

Workflow file for this run

# 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:
defaults:
run:
shell: bash -l {0} # enables conda/mamba env activation by reading bash profile
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
- name: Create mamba environment
run: |
micromamba create -n venv python=${{ matrix.python-version }} --yes
micromamba install -n venv -c conda-forge enumlib packmol bader openbabel openff-toolkit --yes
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "latest"
- name: Install dependencies
run: |
micromamba activate venv
uv pip install --upgrade -r requirements-ci.txt
- name: pytest
run: |
micromamba activate venv
cd notebooks
pytest --ignore-glob=*notest.ipynb --nbmake .