-
Notifications
You must be signed in to change notification settings - Fork 146
59 lines (50 loc) · 1.4 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# 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"
MPLBACKEND: Agg # non-interactive backend for matplotlib
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Set up micromamba
uses: mamba-org/setup-micromamba@main
with:
environment-name: matgenb
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 and run pytest
run: |
micromamba activate matgenb
uv pip install --upgrade -r requirements-ci.txt
pytest --ignore-glob=*notest.ipynb --nbmake notebooks/