-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8a8ae56
commit 845d5a8
Showing
3 changed files
with
37 additions
and
8 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 |
---|---|---|
|
@@ -36,7 +36,6 @@ jobs: | |
- py312 | ||
- py311 | ||
- py310 | ||
- py39 | ||
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@v4 | ||
|
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: pytest | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.9"] | ||
os: [ubuntu-latest] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -e . | ||
# dev dependencies, cannot be read with pip because they are in pixi | ||
python -m pip install dask geopandas mapbox_earcut matplotlib-base netcdf4 numba_celltree pip pooch pre-commit pydata-sphinx-theme pymetis pyproj pytest pytest-cov ruff shapely scipy sphinx sphinx-gallery xarray zarr ipykernel twine build | ||
- name: Test with pytest | ||
run: | | ||
pytest |
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 |
---|---|---|
|
@@ -7,12 +7,12 @@ name = "xugrid" | |
description = "Xarray extension for unstructured grids" | ||
readme = { file = "README.rst", content-type = "text/x-rst" } | ||
maintainers = [{ name = "Huite Bootsma", email = "[email protected]" }] | ||
requires-python = ">=3.9" | ||
requires-python = ">=3.10" | ||
dependencies = [ | ||
'pandas', | ||
'numba', | ||
'numba_celltree', | ||
'numpy<2.0.0', | ||
'numpy', | ||
'pooch', | ||
'scipy', | ||
'xarray', | ||
|
@@ -25,7 +25,6 @@ classifiers = [ | |
'Programming Language :: Python', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3.11', | ||
'Programming Language :: Python :: 3.12', | ||
|
@@ -120,12 +119,8 @@ python = "3.11.*" | |
[tool.pixi.feature.py310.dependencies] | ||
python = "3.10.*" | ||
|
||
[tool.pixi.feature.py39.dependencies] | ||
python = "3.9.*" | ||
|
||
[tool.pixi.environments] | ||
default = { features = ["py312"], solve-group = "py312" } | ||
py312 = { features = ["py312"], solve-group = "py312" } | ||
py311 = ["py311"] | ||
py310 = ["py310"] | ||
py39 = ["py39"] |