Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjusting testing #3

Merged
merged 6 commits into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/build_conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ jobs:
- name: Build
run: |
rm pyproject.toml
conda install conda-build
conda install conda-build conda-verify
conda install -c ifilot pyqint pylebedev
conda install -c conda-forge tqdm
conda install -c conda-forge tqdm mendeleev pytest
conda build . --output-folder conda-bld/
- name: Archive packages
uses: actions/upload-artifact@v3
Expand All @@ -56,7 +56,7 @@ jobs:
runs-on: ubuntu-latest
environment:
name: anaconda
url: https://anaconda.org/ifilot/pyqint
url: https://anaconda.org/ifilot/pydft
steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![build](https://github.com/ifilot/pydft/actions/workflows/build_pypi.yml/badge.svg)](https://github.com/ifilot/pydft/actions/workflows/build_pypi.yml)
[![build](https://github.com/ifilot/pydft/actions/workflows/build_conda.yml/badge.svg)](https://github.com/ifilot/pydft/actions/workflows/build_conda.yml)
[![Anaconda-Server Badge](https://anaconda.org/ifilot/pydft/badges/version.svg)](https://anaconda.org/ifilot/pydft)
[![PyPI](https://img.shields.io/pypi/v/pydft?color=green)](https://pypi.org/project/pytessel/)
[![PyPI](https://img.shields.io/pypi/v/pydft?color=green)](https://pypi.org/project/pydft/)
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)

> [!NOTE]
Expand Down
14 changes: 10 additions & 4 deletions meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,23 @@ requirements:
- python>=3.9
- scipy
- numpy
- conda-forge::mendeleev
- ifilot::pyqint
- ifilot::pylebedev

test:
requires:
- numpy
- nose
- scipy
- conda
- packaging
- python>=3.9
- setuptools
- pytest
- conda-forge::mendeleev
- ifilot::pyqint
- ifilot::pylebedev
source_files:
- tests/*.py
commands:
- pytest

about:
home: https://github.com/ifilot/pydft
Expand Down
6 changes: 6 additions & 0 deletions tests/test_bragg_slater.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import unittest
import sys
import os
import numpy as np

# add a reference to load the pyDFT module
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))

from pydft import MoleculeBuilder, MolecularGrid

class TestCustomBasisSet(unittest.TestCase):
Expand Down
6 changes: 6 additions & 0 deletions tests/test_custom_basisset.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import unittest
import sys
import os
import numpy as np

# add a reference to load the pyDFT module
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))

from pydft import MoleculeBuilder, DFT
from pyqint import cgf

Expand Down
6 changes: 6 additions & 0 deletions tests/test_dft.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import unittest
import sys
import os
import numpy as np

# add a reference to load the pyDFT module
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))

from pydft import MoleculeBuilder, DFT

class TestDFT(unittest.TestCase):
Expand Down
9 changes: 4 additions & 5 deletions tests/test_energy_decomposition.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# -*- coding: utf-8 -*-

import numpy as np
import unittest
import sys, os
import sys
import os
import numpy as np

# add a reference to load the PyPWDFT module
# add a reference to load the pyDFT module
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))

from pydft import DFT, MoleculeBuilder
Expand Down
10 changes: 7 additions & 3 deletions tests/test_moleculargrid.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# -*- coding: utf-8 -*-
import unittest
import sys
import os
import numpy as np

# add a reference to load the pyDFT module
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))

from pydft import MoleculeBuilder, MolecularGrid
import numpy as np
import unittest

class TestMolecularGrid(unittest.TestCase):
"""
Expand Down
6 changes: 6 additions & 0 deletions tests/test_normalization.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import unittest
import sys
import os
import numpy as np

# add a reference to load the pyDFT module
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))

from pydft import MoleculeBuilder, DFT

class TestNormalization(unittest.TestCase):
Expand Down
7 changes: 7 additions & 0 deletions tests/test_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import unittest
import sys
import os
import numpy as np

# add a reference to load the pyDFT module
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))

import pydft

class TestVersion(unittest.TestCase):
Expand Down
8 changes: 7 additions & 1 deletion tests/test_xc.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import unittest
from pydft import MoleculeBuilder, DFT
import sys
import os
import numpy as np

# add a reference to load the pyDFT module
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))

from pydft import MoleculeBuilder, DFT

class TestXC(unittest.TestCase):

def test_svwn5(self):
Expand Down
Loading