Skip to content

Commit 9dc1879

Browse files
committed
work on self-tests 3
1 parent 444ec5a commit 9dc1879

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/win_test.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,36 +35,38 @@ jobs:
3535
shell: bash -el {0}
3636
run: |
3737
# tailor the numpy version to match the GSAS-II binaries
38-
if [ "${{ matrix.env }}" == "py313" ]; then
38+
if [ "${{ matrix.python-version }}" == "3.13" ]; then
3939
npver=2.2
40-
elif [ "${{ matrix.env }}" == "py312" ]; then
40+
elif [ "${{ matrix.python-version }}" == "3.12" ]; then
4141
npver=2.2
42-
elif [ "${{ matrix.env }}" == "py311" ]; then
42+
elif [ "${{ matrix.python-version }}" == "3.11" ]; then
4343
npver=1.26
4444
fi
45-
#conda list
46-
#conda info
47-
conda install --quiet numpy=${npver} scipy requests pytest git gitpython -c conda-forge
45+
conda install python=${{ matrix.python-version }} numpy=${npver} scipy requests pytest git gitpython -c conda-forge --override-channels --quiet
4846
#conda install --quiet numpy=${npver} requests pytest briantoby::gsas2pkg -c conda-forge
47+
conda info
48+
conda list
4949
- name: GSAS-II install
5050
shell: bash -el {0}
5151
run: |
5252
#mkdir G2
5353
#cd G2
5454
curl -L -O https://github.com/AdvancedPhotonSource/GSAS-II-buildtools/raw/main/install/gitstrap.py
5555
python gitstrap.py --nocheck --noshortcut --branch=main
56+
5657
- name: find files
5758
shell: bash -el {0}
5859
run: |
5960
ls -l GSAS-II/GSASII-bin/win_64_p3.13_n2.2
6061
ls -l GSAS-II/tests
62+
6163
- name: GSAS-II single test
6264
if: always()
6365
shell: bash -el {0}
6466
run: |
6567
cd GSAS-II
6668
python tests/test_elm.py
67-
python tests/test_spg.py
69+
# python tests/test_spg.py
6870

6971
# - name: GSAS-II all tests
7072
# if: always()
@@ -79,7 +81,8 @@ jobs:
7981
shell: bash -el {0}
8082
run: |
8183
cd GSAS-II/GSASII-bin/win_64_p3.13_n2.2
82-
python
84+
python -VV
85+
python -v -c "import sys; print(sys.path)"
8386
python -v -c "import pyspg"
8487
8588
- name: try ldd
@@ -91,6 +94,7 @@ jobs:
9194
cd GSAS-II/GSASII-bin/win_64_p3.13_n2.2
9295
ls
9396
ntldd *.pyd
97+
python -c "import pyspg"
9498
9599
# #uses: conda-incubator/setup-miniconda@030178870c779d9e5e1b4e563269f3aa69b04081 # v3.0.3 using hash for security
96100
# with:

0 commit comments

Comments
 (0)