-
Notifications
You must be signed in to change notification settings - Fork 17
Fix: Adding Pace and PySHiELD unit tests back in to workflow
#66
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
Changes from 7 commits
5df509d
d6b8241
4c95d9e
0e4a18c
bb71cb8
96a7e02
4c60be7
6681412
63c69aa
5177a0c
f2e050f
31779a3
a420c82
bf51aab
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,10 @@ | ||
| # TODO: Re-activate after PR 60 | ||
| # TODO: Temporarily removing tests due to dependent changes in | ||
| # Pace#129, PyFV3#64 PRs; tests should be reverted back after | ||
| # these PRs are merged. | ||
| name: "pace main tests" | ||
| on: | ||
| pull_request: | ||
|
|
||
| # name: "pace main tests" | ||
| # on: | ||
| # pull_request: | ||
|
|
||
| # jobs: | ||
| # pace_main_tests: | ||
| # uses: NOAA-GFDL/pace/.github/workflows/main_unit_tests.yaml@develop | ||
| # with: | ||
| # component_trigger: true | ||
| # component_name: pyFV3 | ||
| jobs: | ||
| pace_main_tests: | ||
| uses: NOAA-GFDL/pace/.github/workflows/main_unit_tests.yaml@develop | ||
| with: | ||
| component_trigger: true | ||
| component_name: pyFV3 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,10 @@ | ||
| # TODO: Reactivate after PR 60 | ||
| # name: "pySHiELD translate tests" | ||
| # on: | ||
| # pull_request: | ||
| name: "pySHiELD translate tests" | ||
| on: | ||
| pull_request: | ||
|
|
||
| # jobs: | ||
| # pyshield_translate_tests: | ||
| # uses: NOAA-GFDL/PySHiELD/.github/workflows/translate.yaml@develop | ||
| # with: | ||
| # component_trigger: true | ||
| # component_name: pyFV3 | ||
| jobs: | ||
| pyshield_translate_tests: | ||
| uses: NOAA-GFDL/PySHiELD/.github/workflows/translate.yaml@develop | ||
| with: | ||
| component_trigger: true | ||
| component_name: pyFV3 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,57 +1,98 @@ | ||
| [build-system] | ||
| requires = ["setuptools >= 77.0.3"] | ||
| build-backend = "setuptools.build_meta" | ||
| requires = ["setuptools >= 77.0.3"] | ||
|
|
||
| [project] | ||
| name = "pyfv3" | ||
| version = "0.2.0" | ||
| authors = [{name = "NOAA - Geophysical Fluid Dynamics Laboratory", email = "oliver.elbert@noaa.gov"}] | ||
| classifiers = [ | ||
| "Development Status :: 2 - Pre-Alpha", | ||
| "Intended Audience :: Developers", | ||
| "Natural Language :: English", | ||
| "Programming Language :: Python :: 3", | ||
| "Programming Language :: Python :: 3.11" | ||
| ] | ||
| dependencies = [ | ||
| "f90nml>=1.1.0", | ||
| "numpy==1.26.4", | ||
| "xarray", | ||
| "f90nml>=1.1.0", | ||
| "numpy==1.26.4", | ||
| "xarray" | ||
| ] | ||
| requires-python = ">=3.11,<3.12" | ||
| authors = [{name = "NOAA - Geophysical Fluid Dynamics Laboratory", email = "oliver.elbert@noaa.gov"}] | ||
| description = "PyFV3 is a NDSL-based FV3 dynamical core for atmospheric models." | ||
| readme = "README.md" | ||
| license = "Apache-2.0" | ||
| license-files = ["LICENSE.md"] | ||
| classifiers = [ | ||
| "Development Status :: 2 - Pre-Alpha", | ||
| "Intended Audience :: Developers", | ||
| "Natural Language :: English", | ||
| "Programming Language :: Python :: 3", | ||
| "Programming Language :: Python :: 3.11", | ||
| ] | ||
| name = "pyfv3" | ||
| readme = "README.md" | ||
| requires-python = ">=3.11,<3.12" | ||
| version = "0.2.0" | ||
|
|
||
| [project.optional-dependencies] | ||
| test = [ | ||
| "coverage", | ||
| "pytest", | ||
| "pytest-subtests", | ||
| "serialbox", | ||
| ] | ||
| ndsl = ["ndsl @ git+https://github.com/NOAA-GFDL/NDSL.git@develop"] | ||
| develop = [ | ||
| "pyfv3[test]", | ||
| "pyfv3[ndsl]", | ||
| "pre-commit", | ||
| dev = [ | ||
| "pyfv3[test]", | ||
| "pyfv3[ndsl]", | ||
| "pre-commit", | ||
| "flake8-pyproject" | ||
| ] | ||
| extras = [ | ||
| "pyfv3[test]", | ||
| "pyfv3[ndsl]", | ||
| "pyfv3[develop]", | ||
| "pyfv3[test]", | ||
| "pyfv3[ndsl]", | ||
| "pyfv3[dev]" | ||
| ] | ||
| ndsl = ["ndsl @ git+https://github.com/NOAA-GFDL/NDSL.git@develop"] | ||
| test = [ | ||
| "coverage", | ||
| "pytest", | ||
| "pytest-subtests", | ||
| "serialbox" | ||
| ] | ||
|
|
||
| [project.urls] | ||
| Repository = "https://github.com/NOAA-GFDL/pyFV3" | ||
|
|
||
| [tool.setuptools.packages.find] | ||
| include = ["pyfv3", "pyfv3.*"] | ||
|
|
||
| [tool.setuptools] | ||
| include-package-data = true | ||
| [tool.aliases] | ||
|
|
||
| [tool.black] | ||
| line-length = 88 | ||
| target_version = ['py311'] | ||
|
|
||
| [tool.bumpversion] | ||
| commit = "True" | ||
| current_version = "0.2.0" | ||
|
romanc marked this conversation as resolved.
Outdated
|
||
|
|
||
| [tool.coverage.run] | ||
| branch = true | ||
| omit = ["tests/*", "*gt_cache*", ".dacecache*", "external/*", "__init__.py"] | ||
| parallel = true | ||
| source_pkgs = ["pyfv3"] | ||
|
|
||
| [tool.disutils.bdist_wheel] | ||
| universal = 1 | ||
|
romanc marked this conversation as resolved.
Outdated
|
||
|
|
||
| [tool.flake8] | ||
| exclude = ["docs"] | ||
| extend-ignore = ["W503", "E302", "E203", "F841", "F401"] | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This adds the exception for
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In the import .moduleA
import .moduleB
__all__ = ["moduleA", "moduleB"]
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, this is why the
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But if you do the
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah okay, today I learned ... Good to know! |
||
| max-line-length = 88 | ||
|
|
||
| [tool.isort] | ||
| default_section = "THIRDPARTY" | ||
| force_grid_wrap = 0 | ||
| include_trailing_comma = true | ||
| known_first_party = "pyfv3,ndsl,pyshield" | ||
| known_third_party = "f90nml,pytest,xarray,numpy,mpi4py,gt4py" | ||
| line_length = 88 | ||
| lines_after_imports = 2 | ||
| multi_line_output = 3 | ||
| sections = "FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER" | ||
| use_parentheses = true | ||
|
|
||
| [tool.mypy] | ||
| explicit_package_bases = true | ||
| follow_imports = "normal" | ||
| ignore_missing_imports = true | ||
| namespace_packages = true | ||
| strict_optional = false | ||
| warn_unreachable = true | ||
|
|
||
| [tool.setuptools] | ||
| include-package-data = true | ||
|
|
||
| [tool.setuptools.packages.find] | ||
| include = ["pyfv3", "pyfv3.*"] | ||
Uh oh!
There was an error while loading. Please reload this page.