Skip to content

Commit

Permalink
Merge pull request #537 from scipp/copier-update
Browse files Browse the repository at this point in the history
Copier update
  • Loading branch information
SimonHeybrock authored Aug 8, 2024
2 parents 77f7fa6 + 0bd7d32 commit 2b5bcb4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
_commit: 0a3cac5
_commit: 86a1e5c
_src_path: gh:scipp/copier_template
description: Neutron scattering tools for Data Reduction
max_python: '3.12'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ jobs:
python-version: ${{ inputs.python-version }}
- run: python -m pip install --upgrade pip
- run: python -m pip install .
- run: python -c 'import scippneutron'
name: Import package with minimal dependencies
- run: python tests/package_test.py
name: Run package tests

test:
runs-on: ${{ inputs.os-variant }}
Expand Down
13 changes: 13 additions & 0 deletions tests/package_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2024 Scipp contributors (https://github.com/scipp)

"""Tests of package integrity.
Note that addidional imports need to be added for repositories that
contain multiple packages.
"""

import scippneutron as pkg


def test_has_version():
assert hasattr(pkg, '__version__')


# This is for CI package tests. They need to run tests with minimal dependencies,
# that is, without installing pytest. This code does not affect pytest.
if __name__ == '__main__':
test_has_version()

0 comments on commit 2b5bcb4

Please sign in to comment.