Skip to content

Commit 3a8ab08

Browse files
authored
Merge pull request #66 from Sparks29032/patch-1
Fix tests
2 parents 0512015 + 08fa021 commit 3a8ab08

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ jobs:
4444
conda activate test
4545
conda install --file requirements/run.txt
4646
conda install --file requirements/test.txt
47-
pip install .
47+
pip install -e .
4848
- name: Validate diffpy.structure
4949
shell: bash -l {0}
5050
run: |
5151
conda activate test
52-
coverage run -m pytest -vv -s
52+
coverage run -m diffpy.structure.tests.run
5353
coverage report -m
5454
codecov

environment.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: diffpy.structure
2+
channels:
3+
- conda-forge
4+
dependencies:
5+
- python=3
6+
- pip

requirements/run.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
numpy < 2.0.0 # Need to fix deprecations before 2.0.0 compat
2+
pycifrw
3+
six

src/diffpy/structure/lattice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import numpy
2626
import numpy.linalg as numalg
2727

28-
from diffpy.structure import LatticeError
28+
from diffpy.structure.structureerrors import LatticeError
2929

3030
# Helper Functions -----------------------------------------------------------
3131

0 commit comments

Comments
 (0)