-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: Create basic CI * chore: ruff ignore notebooks * build: pyproject.toml, use setuptools-scm, ruff * fix: version information
- Loading branch information
Showing
13 changed files
with
100 additions
and
2,565 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -3,7 +3,6 @@ branch = True | |
source = h3_pandas | ||
omit = | ||
setup.py | ||
versioneer.py | ||
h3pandas/_version.py | ||
|
||
[report] | ||
|
This file contains 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,35 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Conda | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
activate-environment: myenv | ||
environment-file: environment.yml | ||
|
||
- name: Install development dependencies | ||
shell: bash -l {0} | ||
run: | | ||
conda env update --file environment-dev.yml | ||
- name: ruff check | ||
shell: bash -l {0} | ||
run: | | ||
ruff check . | ||
- name: pytest | ||
shell: bash -l {0} | ||
run: | | ||
pytest tests/ |
This file contains 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 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 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 |
---|---|---|
|
@@ -2,5 +2,7 @@ channels: | |
- conda-forge | ||
dependencies: | ||
# Test | ||
- ruff | ||
- pytest | ||
- pytest-cov | ||
- setuptools-scm |
This file contains 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,9 @@ | ||
from . import h3pandas # noqa: F401s | ||
|
||
from ._version import get_versions | ||
from importlib.metadata import version, PackageNotFoundError | ||
|
||
__version__ = get_versions()["version"] | ||
del get_versions | ||
try: | ||
__version__ = version("package-name") | ||
except PackageNotFoundError: | ||
# package is not installed | ||
pass |
Oops, something went wrong.