Repository navigation
Nlk36701 patch 1 #28
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
Merged
Merged
Nlk36701 patch 1 #28
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
fd02d7c
Add CI workflow for Python versions 3.9 to 3.13
nlk36701 6ab126f
Fix pip install command in workflow
nlk36701 8d07886
Add build system configuration to pyproject.toml
nlk36701 24005a2
Add versioneer to build-system requirements
nlk36701 c7a9caf
Fix spacing in versionfile paths in setup.cfg
nlk36701 27eaf90
Modify installation step for test dependencies
nlk36701 ef8545b
Let pytest discover test directory
nlk36701 9ad59ef
Remove --no-deps from pip install command
nlk36701 0cc26e3
Add step to install MolSym in workflow
nlk36701 96d9eb1
Update setup.py
nlk36701 00fe09c
Create __init__.py
nlk36701 bc96c4f
Enhance MANIFEST.in for better package inclusion
nlk36701 655c239
Update package_data to include additional test files
nlk36701 a6b771e
Upgrade actions/checkout to v5 and modify test path
nlk36701 4839888
python path
nlk36701 ebcf9b8
Add pint package installation to workflow
nlk36701 56ee327
Hide _test_transf_disp.py
nlk36701 e9c0cac
Changed working directory in workflow.yml
nlk36701 18b233e
moved tests, addressed it in workflow.yml
nlk36701 0402c9b
Update workflow.yml
nlk36701 35c72b3
Revert back
nlk36701 4bda388
Update pytest command for test directory path
nlk36701 685d360
Create symlink for ref_data and modify pytest command
nlk36701 f76e30f
Fix indentation in workflow YAML file
nlk36701 0c50125
Fix indentation in pytest command in workflow
nlk36701 89ff2a0
print values in test_zmat
nlk36701 c95df72
Rename workflow file to CI.yml
nlk36701 e008e73
fixed zmat test for type error
nlk36701 93e2e2d
uncommented lines
nlk36701 0344e51
formatted with black
nlk36701 b859987
Validate custom indices in test_zmat.py
nlk36701 92876ac
debug pytest failure
nlk36701 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| name: CI | ||
| on: [push, pull_request] | ||
| jobs: | ||
| run: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| cfg: | ||
| - conda-env: base | ||
| python-version: 3.9 | ||
| - conda-env: base | ||
| python-version: "3.10" | ||
| - conda-env: base | ||
| python-version: "3.11" | ||
| - conda-env: base | ||
| python-version: "3.12" | ||
| - conda-env: base | ||
| python-version: "3.13" | ||
| env: | ||
| PYVER: ${{ matrix.cfg.python-version }} | ||
| CONDA_ENV: ${{ matrix.cfg.conda-env }} | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
|
|
||
| - name: Create Environment | ||
| uses: conda-incubator/setup-miniconda@v2 | ||
| with: | ||
| installer-url: https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh | ||
| activate-environment: test | ||
| environment-file: devtools/conda-envs/${{ matrix.cfg.conda-env }}.yaml | ||
| python-version: ${{ matrix.cfg.python-version }} | ||
| auto-activate-base: false | ||
|
|
||
| - name: Install test dependencies | ||
| shell: bash -l {0} | ||
| run: | | ||
| conda install -y pytest pytest-cov | ||
| - name: Install MolSym | ||
| shell: bash -l {0} | ||
| run: | | ||
| pip install pint | ||
| pip install git+https://github.com/NASymmetry/MolSym.git | ||
| - name: Install ConcordantModes | ||
| shell: bash -l {0} | ||
| run: | | ||
| python -m pip install . | ||
| - name: Make ref_data available from repo root | ||
| shell: bash -l {0} | ||
| run: | | ||
| ln -sfn "${GITHUB_WORKSPACE}/concordantmodes/tests/ref_data" ref_data | ||
|
MitchLahm marked this conversation as resolved.
|
||
| echo "Symlink created:" | ||
| ls -l ref_data | ||
| - name: Test with pytest | ||
| shell: bash -l {0} | ||
| run: | | ||
| export PYTHONPATH="${GITHUB_WORKSPACE}:${PYTHONPATH}" | ||
| pytest --cov="concordantmodes" --color=yes --cov-report=xml concordantmodes/tests | ||
| # - name: Upload Coverage to Codecov | ||
| # uses: codecov/codecov-action@v5 | ||
| # with: | ||
| # directory: ./coverage/reports/ | ||
| # env_vars: OS,PYTHON | ||
| # fail_ci_if_error: false | ||
| # files: ./coverage.xml | ||
| # flags: unittests | ||
| # name: codecov-umbrella | ||
| # verbose: true | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,33 @@ | ||
| recursive-include concordantmodes *.py | ||
| recursive-include examples | ||
|
|
||
| include setup.py | ||
| include setup.cfg | ||
| ############################################### | ||
| # Core project metadata | ||
| ############################################### | ||
| include README.md | ||
| include LICENSE | ||
| include MANIFEST.in | ||
| include setup.py | ||
| include pyproject.toml | ||
| include setup.cfg | ||
|
|
||
| # Include package source code | ||
|
|
||
| recursive-include concordantmodes *.py | ||
|
|
||
| # Include test suite | ||
|
|
||
| recursive-include concordantmodes/tests *.py | ||
| recursive-include concordantmodes/tests/ref_data * | ||
|
|
||
| # Include any templates, example files, etc. | ||
|
|
||
| recursive-include concordantmodes *.txt | ||
| recursive-include concordantmodes *.dat | ||
| recursive-include concordantmodes *.json | ||
| recursive-include concordantmodes *.yaml | ||
| recursive-include concordantmodes *.yml | ||
|
|
||
| # junk | ||
|
MitchLahm marked this conversation as resolved.
|
||
|
|
||
| include versioneer.py | ||
| include concordantmodes/_version.py | ||
| global-exclude __pycache__/* | ||
| global-exclude *.pyc | ||
| global-exclude *.pyo | ||
| global-exclude *.swp | ||
| global-exclude *.swo | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -233,4 +233,3 @@ def reap_gradients(self, direc, grad_regex1, grad_regex2): | |
| os.chdir("..") | ||
|
|
||
| return grad_array | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
|
|
Binary file removed
BIN
-2.35 KB
concordantmodes/tests/__pycache__/suite_execute.cpython-39-pytest-7.2.0.pyc
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-1.49 KB
concordantmodes/tests/__pycache__/test_directory_tree.cpython-39-pytest-7.2.0.pyc
Binary file not shown.
Binary file removed
BIN
-2.73 KB
concordantmodes/tests/__pycache__/test_f_convert.cpython-39-pytest-7.2.0.pyc
Binary file not shown.
Binary file removed
BIN
-4.12 KB
concordantmodes/tests/__pycache__/test_f_read.cpython-39-pytest-7.2.0.pyc
Binary file not shown.
Binary file removed
BIN
-2.76 KB
concordantmodes/tests/__pycache__/test_g_matrix.cpython-39-pytest-7.2.0.pyc
Binary file not shown.
Binary file removed
BIN
-2.11 KB
concordantmodes/tests/__pycache__/test_gf_method.cpython-39-pytest-7.2.0.pyc
Binary file not shown.
Binary file removed
BIN
-2.27 KB
concordantmodes/tests/__pycache__/test_reap.cpython-39-pytest-7.2.0.pyc
Binary file not shown.
Binary file removed
BIN
-3.16 KB
concordantmodes/tests/__pycache__/test_s_vectors.cpython-39-pytest-7.2.0.pyc
Binary file not shown.
Binary file removed
BIN
-2.54 KB
concordantmodes/tests/__pycache__/test_symmetry.cpython-39-pytest-7.2.0.pyc
Binary file not shown.
Binary file removed
BIN
-2.41 KB
concordantmodes/tests/__pycache__/test_transf_disp.cpython-39-pytest-7.2.0.pyc
Binary file not shown.
Binary file removed
BIN
-10.2 KB
concordantmodes/tests/__pycache__/test_zmat.cpython-39-pytest-7.2.0.pyc
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,6 +11,7 @@ | |
|
|
||
|
|
||
| def test_make_input(): | ||
|
|
||
| os.chdir("./ref_data/dir_tree/") | ||
|
|
||
| options = Options() | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
MitchLahm marked this conversation as resolved.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| [build-system] | ||
| requires = [ | ||
| "setuptools>=42", | ||
| "wheel", | ||
| "versioneer" | ||
|
MitchLahm marked this conversation as resolved.
|
||
| ] | ||
| build-backend = "setuptools.build_meta" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| [versioneer] | ||
| VCS = git | ||
| style = pep440 | ||
| versionfile_source = concordantmodes / _version.py | ||
| versionfile_build = concordantmodes / _version.py | ||
| versionfile_source = concordantmodes/_version.py | ||
| versionfile_build = concordantmodes/_version.py | ||
| tag_prefix = "" |
|
MitchLahm marked this conversation as resolved.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't bother with 3.9 and 3.10. conda-forge build system has already dropped 3.9 support iirc.
I would add 3.14.
3.14 has some fairly significant changes (GIL). Psi4 and MolSSI are working on getting everything working with 3.14 rn.