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
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mpiplus/_version.py export-subst
29 changes: 22 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ jobs:
contents: read

steps:
# Checkout repo for tests, but don't install package from it
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
# We don't need the token for more git operations
persist-credentials: false

- name: Download wheel
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
Expand All @@ -80,19 +87,27 @@ jobs:
with:
python-version: "3.12"

- name: Install built wheel
run: python -m pip install dist/*.whl[dev]
- name: Install built wheel with dev dependencies
shell: bash
run: |
shopt -s nullglob
wheels=(dist/*.whl)
if (( ${#wheels[@]} != 1 )); then
echo "Expected exactly one wheel, found ${#wheels[@]}"
exit 1
fi
python -m pip install "${wheels[0]}[dev]"

- name: Run import and version tests
run: |
python -c "import mpiplus; print(f'{mpiplus.__version__=}')"

- name: Run tests
# Use isolated directory and --import-mode=importlib to avoid hiding
# packing bugs by running in checked out repo
working-directory: /tmp
run: |
pytest --import-mode=importlib -v --color=yes --durations=10 $GITHUB_WORKSPACE/mpiplus/tests/
# Use isolated directory and --import-mode=importlib to avoid hiding
# packing bugs by running in checked out repo
working-directory: /tmp
run: |
pytest --import-mode=importlib -v --color=yes --durations=10 $GITHUB_WORKSPACE/mpiplus/tests/

publish:
name: Publish to PyPI
Expand Down
6 changes: 6 additions & 0 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
Installation
************

Installing via `pip`
===================

.. code-block:: bash
$ pip install mpiplus

Installing via `conda`
======================

Expand Down
Loading
Loading