Skip to content

Commit

Permalink
github actions updates
Browse files Browse the repository at this point in the history
  • Loading branch information
scottyhq committed Oct 27, 2024
1 parent daa9f44 commit 56b8caa
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 60 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
python-version: ["3.10", "3.11", "3.12"]
# windows-latest,
runs-on: [ubuntu-latest, macos-14]
#include:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pixi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,7 @@ jobs:
MAXAR_API_KEY: ${{ secrets.MAXAR_API_KEY}}
run: |
pixi run networktest
- name: Build Documentation
run: |
pixi run docs
72 changes: 72 additions & 0 deletions .github/workflows/upstream.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Test against the latest versions of Python and other libraries
name: Upstream versions

on:
workflow_dispatch:
pull_request:
push:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
# Many color libraries just need this to be set to any value, but at least
# one distinguishes color depth, where "3" -> "256-bit color".
FORCE_COLOR: 3

jobs:
pre-commit:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- uses: pre-commit/[email protected]
with:
extra_args: --hook-stage manual --all-files

checks:
name: Check Python ${{ matrix.python-version }} on ${{ matrix.runs-on }}
runs-on: ${{ matrix.runs-on }}
needs: [pre-commit]
strategy:
fail-fast: false
matrix:
python-version: ["3.13", "3.14"]
# windows-latest,
runs-on: [ubuntu-latest, macos-14]
#include:
# - python-version: "pypy-3.10"
# runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true

- name: Install package
run: python -m pip install .[dev]

- name: Test package
env:
MAXAR_API_KEY: ${{ secrets.MAXAR_API_KEY}}
run: >-
python -m pytest -ra --cov --cov-report=xml --cov-report=term
--durations=20
- name: Upload coverage report
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
48 changes: 3 additions & 45 deletions pixi.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 12 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,22 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering",
"Typing :: Typed",
]
dynamic = ["version"]

dependencies = [
"aiohttp>=3.10.6,<4",
"fsspec>=2024.9.0,<2025",
"geopandas>=1.0.1,<2",
"maxar-platform==1.0.2a2",
"planetary-computer>=1.0.0,<2",
"pystac-client>=0.8.3,<0.9",
"fsspec>=2024.9.0,<2025",
"requests>=2.32.3,<3",
"aiohttp>=3.10.6,<4",
"pyarrow>=17",
"stac-asset>=0.4.3,<0.5",
"requests>=2.32.3,<3",
"rioxarray>=0.17.0,<0.18",
"stac-asset>=0.4.3,<0.5",
"stac-geoparquet>=0.6.0,<0.7",
"s3fs>=2024.9.0,<2025",
]
Expand All @@ -50,9 +49,10 @@ dependencies = [
dev = [
"ipykernel>=6.29.5,<7",
"mypy>=1.11.2,<2",
"pre-commit>=3.8.0,<4",
"pylint>=3.3.1,<4",
"pytest >=6",
"pytest-cov >=3",
"pre-commit>=3.8.0,<4",
]
docs = [
"furo>=2023.08.17",
Expand Down Expand Up @@ -202,6 +202,7 @@ aiohttp = "*"
fsspec = "*"
geopandas = "*"
planetary-computer = "*"
pyarrow = "*"
pystac-client = "*"
requests = "*"
rioxarray = "*"
Expand All @@ -212,19 +213,16 @@ s3fs = "*"
#sliderule = ">=4.7.1,<5"

[tool.pixi.feature.dev.dependencies]
# NOTE: ipykernel to run notebooks in vscode
ipykernel = ">=6.29.5,<7"
# Bug if=*? Because you require pre-commit>=3.8.0,<4 and pre-commit==4.0.0, we can conclude that your requirements are unsatisfiable.
pre-commit = "<4"
pylint = "*"
pytest = "*"
mypy = "*"
pyarrow = "*"
# NOTE: ipykernel to run notebooks in vscode
ipykernel = ">=6.29.5,<7"
# Testing additional dependencies
#rich = ">=13.8.1,<14" # Optional. convenient for rich.print(dataset)
#uv = ">=0.4.14,<0.5"
#stac-geoparquet = "*"
#rasterio = ">=1.4.0,<2"
xvec = ">=0.3.0,<0.4"
pylint = ">=3.3.1,<4"
#xvec = ">=0.3.0,<0.4"

[tool.pixi.feature.dev.pypi-dependencies]
coincident = { path = ".", editable = true }
Expand Down

0 comments on commit 56b8caa

Please sign in to comment.