-
Notifications
You must be signed in to change notification settings - Fork 18
82 lines (71 loc) · 2.5 KB
/
basictest_win.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: basictest_win
on:
push:
pull_request:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: src
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: 3.11
#- name: Pip upgrade
# shell: cmd
# run: |
# python3 -m pip install -U pip
# python3 -m pip install -U setuptools
# python3 -m pip install -U scikit-build-core
#NB: We don't test matplotlib import here in the next step, since we want
#to make sure that our CTest infrastructure correctly avoids problems from
#"building font cache" printouts on first imports.
- name: pip install extra deps
shell: cmd
run: |
python -mpip install numpy matplotlib gemmi spglib ase mpmath
python -c "import numpy; print('numpy imported ok')"
python -c "import gemmi; print('gemmi imported ok')"
python -c "import spglib; print('spglib imported ok')"
python -c "import ase; print('ase imported ok')"
python -c "import mpmath; print('mpmath imported ok')"
- name: Monolithic pip install of repo
shell: cmd
run: python3 -m pip install .\src\
- name: Various commandline tests
shell: cmd
run: |
ncrystal-config --summary
ncrystal-config --help
python3 -c "import NCrystal; NCrystal.test()"
python3 -c "import NCrystal as n; mat=n.load('Al_sg225.ncmat;temp=350K'); mat.dump()"
nctool --test
nctool --dump Al_sg225.ncmat
python3 -mNCrystal nctool --test
python3 ./src/examples/ncrystal_example_py
ncrystal_vdos2ncmat --help
ncrystal_cif2ncmat --help
ncrystal_ncmat2cpp --help
ncrystal_hfg2ncmat --help
ncrystal_verifyatompos --help
ncrystal_cif2ncmat codid::9008460
ncrystal_ncmat2hkl --help
ncrystal_ncmat2hkl --format=laz 'Al_sg225.ncmat;temp=250K;dcutoff=0.75' -o test_Al.laz
ncrystal_ncmat2hkl --format=lau 'Al_sg225.ncmat;temp=250K;dcutoff=0.75' -o test_Al.lau
nctool -d ./test_Al.laz
nctool -d ./test_Al.lau
ncrystal_ncmat2cpp $(ncrystal-config --show datadir)/Al_sg225.ncmat -o test.cpp
cat test.cpp
nctool --pdf Al_sg225.ncmat
#TODO:
# python3 ./src/examples/ncrystal_example_py
#
#
## - name: Setup tmate session for manual debugging
## uses: mxschmitt/action-tmate@v3
## if: always()
## with:
## limit-access-to-actor: true