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
23 changes: 10 additions & 13 deletions .github/workflows/publish_to_pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,28 @@ on: push
jobs:
build-and-publish:
name: Build and Publish Distributions on PyPI
runs-on: ubuntu-22.04
runs-on: ubuntu-latest

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

- name: Install Poetry
run: |
pipx install poetry==1.3.1
poetry self add "poetry-dynamic-versioning[plugin]"
- name: Install uv
uses: astral-sh/setup-uv@v5

- name: Set up Python 3.10
uses: actions/setup-python@v4
- name: Set up Python 3.14
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'poetry'
python-version: '3.14'

- name: Install dependencies
run: poetry install
run: uv sync

- name: Build distribution
run: poetry build
run: uv build

- name: Publish distribution 📦 to PyPI
- name: Publish distribution to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down
22 changes: 12 additions & 10 deletions .github/workflows/test_pull_requests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,30 @@ on:
jobs:
run_test_suite:
name: Test HeatmapX
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
strategy:
max-parallel: 2
max-parallel: 5
matrix:
python-version:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'
- '3.14'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Poetry
run: pipx install poetry==1.3.1
- name: Install uv
uses: astral-sh/setup-uv@v5

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'

- name: Install dependencies
run: poetry install --with test
run: uv sync --group test

- name: Test with pytest
run: poetry run python -m pytest
run: uv run python -m pytest
6 changes: 3 additions & 3 deletions heatmapx/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""Create heatmaps from NetworkX graphs."""

# A placeholder version. The actual version is managed by the
# poetry-dynamic-versioning Poetry plugin.
__version__ = '0.0.0'
from importlib.metadata import version

__version__ = version('heatmapx')
__all__ = ['temperature_graph']

from heatmapx._thermograph import temperature_graph
Loading