Skip to content
Open
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
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
branches:
- main

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down Expand Up @@ -80,3 +83,27 @@ jobs:
except ImportError as e:
print(f'⚠ {module} import failed: {e}')
"

tests:
name: Tests (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12"]

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

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

- uses: astral-sh/setup-uv@v7

- name: Run test suite
run: |
uv sync --locked --group dev --python "${{ matrix.python-version }}"
uv run --no-sync pytest tests -v
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
57 changes: 30 additions & 27 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,35 @@ description = "NSLS-II Hard X-ray Nanoprobe data acquisition tools"
readme = "README.md"
requires-python = ">=3.11"
license = "BSD-3-Clause"
authors = [
{name = "Brookhaven National Laboratory", email = "DAMA@bnl.gov"}
]
authors = [{ name = "Brookhaven National Laboratory", email = "DAMA@bnl.gov" }]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
]
dependencies = [
"bluesky",
"boltons",
"cycler",
"databroker",
"h5py",
"matplotlib",
"nslsii",
"numpy",
"ophyd",
"pandas",
"pyepics",
"scipy",
"bluesky",
"boltons",
"cycler",
"databroker",
"doct",
"h5py",
"matplotlib",
"nslsii",
"numpy",
"ophyd",
"pandas",
"pims",
"pyepics",
"scipy",
]

[project.urls]
Expand All @@ -48,7 +48,10 @@ Changelog = "https://github.com/NSLS-II-HXN/hxntools/releases"

[dependency-groups]
dev = [
"pre-commit>=4.3",
"pre-commit>=4.3",
"pytest>=8.0",
"bluesky-tiled-plugins>=2.0.11",
"tiled[server]>=0.2.18",
Comment thread
thopkins32 marked this conversation as resolved.
]

[tool.hatch.version]
Expand Down
Loading
Loading