Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

jobs:
ruff:
name: ruff (py3.12)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -21,16 +22,24 @@ jobs:
uses: astral-sh/setup-uv@v4
with:
version: "latest"
enable-cache: true
cache-dependency-glob: uv.lock

- name: Install dependencies
env:
UV_PYTHON: ${{ env.pythonLocation }}/bin/python
run: |
uv sync
uv pip install -e ".[dev]"
uv sync --group dev
uv pip install -e .

- name: Run ruff format check
env:
UV_PYTHON: ${{ env.pythonLocation }}/bin/python
run: |
uv run ruff format --check src/ tests/

- name: Run ruff lint
env:
UV_PYTHON: ${{ env.pythonLocation }}/bin/python
run: |
uv run ruff check src/ tests/
24 changes: 20 additions & 4 deletions .github/workflows/test-astropy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,19 @@ on:

jobs:
test-astropy:
name: test-astropy (py${{ matrix.python-version }} / ${{ matrix.shard.name }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]

shard:
- name: core
filter: "^benchmarks\\.(coordinates|units|cosmology|stats|table)"
- name: io
filter: "^benchmarks\\.(io_ascii|io_fits|votable|votable_converters|imports)"
- name: heavy
filter: "^benchmarks\\.(convolve|wcs|timeseries|modeling|visualization)"
steps:
- uses: actions/checkout@v4

Expand All @@ -29,13 +36,22 @@ jobs:
uses: astral-sh/setup-uv@v4
with:
version: "latest"
enable-cache: true
cache-dependency-glob: uv.lock

- name: Install dependencies
env:
UV_PYTHON: ${{ env.pythonLocation }}/bin/python
run: |
uv sync
uv pip install -e ".[dev]"
uv sync --group dev
uv pip install asv
uv pip install -e .

- name: Run astropy benchmark roundtrip test
env:
UV_PYTHON: ${{ env.pythonLocation }}/bin/python
SNAPSHOT_TOOL_FILTER: ${{ matrix.shard.filter }}
SNAPSHOT_TOOL_TIMEOUT: "10"
run: |
uv run pytest -v tests/test_cli_roundtrip.py::TestAstropyRoundtrip -x
timeout-minutes: 90
Expand All @@ -44,6 +60,6 @@ jobs:
if: failure()
uses: actions/upload-artifact@v4
with:
name: astropy-snapshots-py${{ matrix.python-version }}
name: astropy-snapshots-py${{ matrix.python-version }}-${{ matrix.shard.name }}
path: tests/.snapshots/
retention-days: 7
23 changes: 19 additions & 4 deletions .github/workflows/test-pandas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,19 @@ on:

jobs:
test-pandas:
name: test-pandas (py${{ matrix.python-version }} / ${{ matrix.shard.name }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]

shard:
- name: io-plot
filter: "^benchmarks\\.(io|plotting|package)"
- name: groupby-reshape
filter: "^benchmarks\\.(groupby|reshape|rolling|join_merge)"
- name: core
filter: "^benchmarks\\.(?!io|plotting|package|groupby|reshape|rolling|join_merge)"
steps:
- uses: actions/checkout@v4

Expand All @@ -29,13 +36,21 @@ jobs:
uses: astral-sh/setup-uv@v4
with:
version: "latest"
enable-cache: true
cache-dependency-glob: uv.lock

- name: Install dependencies
env:
UV_PYTHON: ${{ env.pythonLocation }}/bin/python
run: |
uv sync
uv pip install -e ".[dev]"
uv sync --group dev
uv pip install -e .

- name: Run pandas benchmark roundtrip test
env:
UV_PYTHON: ${{ env.pythonLocation }}/bin/python
SNAPSHOT_TOOL_FILTER: ${{ matrix.shard.filter }}
SNAPSHOT_TOOL_TIMEOUT: "45"
run: |
uv run pytest -v tests/test_cli_roundtrip.py::TestPandasRoundtrip -x
timeout-minutes: 90
Expand All @@ -44,6 +59,6 @@ jobs:
if: failure()
uses: actions/upload-artifact@v4
with:
name: pandas-snapshots-py${{ matrix.python-version }}
name: pandas-snapshots-py${{ matrix.python-version }}-${{ matrix.shard.name }}
path: tests/.snapshots/
retention-days: 7
13 changes: 10 additions & 3 deletions .github/workflows/test-shapely.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ on:

jobs:
test-shapely:
name: test-shapely (py${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v4

Expand All @@ -29,13 +29,20 @@ jobs:
uses: astral-sh/setup-uv@v4
with:
version: "latest"
enable-cache: true
cache-dependency-glob: uv.lock

- name: Install dependencies
env:
UV_PYTHON: ${{ env.pythonLocation }}/bin/python
run: |
uv sync
uv pip install -e ".[dev]"
uv sync --group dev
uv pip install -e .

- name: Run shapely benchmark roundtrip test
env:
UV_PYTHON: ${{ env.pythonLocation }}/bin/python
SNAPSHOT_TOOL_TIMEOUT: "45"
run: |
uv run pytest -v tests/test_cli_roundtrip.py::TestShapelyRoundtrip -x
timeout-minutes: 30
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ on:

jobs:
test:
name: tests (py${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v4

Expand All @@ -26,13 +26,19 @@ jobs:
uses: astral-sh/setup-uv@v4
with:
version: "latest"
enable-cache: true
cache-dependency-glob: uv.lock

- name: Install dependencies
env:
UV_PYTHON: ${{ env.pythonLocation }}/bin/python
run: |
uv sync
uv pip install -e ".[dev]"
uv sync --group dev
uv pip install -e .

- name: Run tests (excluding benchmark repo roundtrip tests)
env:
UV_PYTHON: ${{ env.pythonLocation }}/bin/python
run: |
uv run pytest -v --ignore=tests/test_repos/ --ignore=tests/test_cli_roundtrip.py

Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,13 @@ dev = [
"pytest-cov>=3.0.0",
"ruff>=0.3.0",
"mypy>=1.0.0",
"numpy>=1.15.0", # For testing with numpy arrays (compatible with 2017+ versions)
"numpy>=1.15.0", # For testing with numpy arrays (compatible with 2017+ versions)
"shapely>=2.0.0",
"astropy>=5.0.0",
"scipy>=1.9.0",
"pandas>=1.5.0",
"asv>=0.6.5",
"asv-runner>=0.2.1",
]

[tool.ruff]
Expand Down
Loading
Loading