Skip to content

Commit

Permalink
revert and separate py39 yml
Browse files Browse the repository at this point in the history
  • Loading branch information
veenstrajelmer authored Jul 11, 2024
1 parent 8a8ae56 commit 845d5a8
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 8 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ jobs:
- py312
- py311
- py310
- py39
steps:
- name: Check out repo
uses: actions/checkout@v4
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/pytest-py39.yml
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
9 changes: 2 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand Down Expand Up @@ -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"]

0 comments on commit 845d5a8

Please sign in to comment.