Skip to content

Commit dc867ad

Browse files
Merge pull request #59 from chrisjonesBSU/wsl
Add WSL test to CI workflow, add notes about using with Windows
2 parents f7c110e + 3ef06fd commit dc867ad

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

.github/workflows/CI.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,33 @@ jobs:
7979

8080
- name: Test (OS -> ${{ matrix.os }} / Python -> ${{ matrix.python-version }})
8181
run: python -m pytest -v --color yes --pyargs msibi
82+
83+
wsl-test:
84+
if: github.event.pull_request.draft == false
85+
name: MSIBI Tests (WSL)
86+
runs-on: windows-latest
87+
88+
steps:
89+
- uses: actions/checkout@v4
90+
name: Checkout Branch / Pull Request
91+
92+
- uses: Vampire/setup-wsl@v5
93+
with:
94+
distribution: Ubuntu-24.04
95+
wsl-shell-user: runner
96+
name: Set up WSL
97+
98+
- name: Install MSIBI and run pytest
99+
shell: wsl-bash {0}
100+
run: |
101+
wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh -O $HOME/Miniforge3.sh
102+
bash $HOME/Miniforge3.sh -b -p $HOME/miniforge
103+
echo 'export PATH=$HOME/miniforge/bin:$PATH' >> ~/.bashrc
104+
export PATH=$HOME/miniforge/bin:$PATH
105+
source ~/.bashrc
106+
source $HOME/miniforge/etc/profile.d/conda.sh
107+
mamba update -n base --all -y
108+
mamba env create -f environment-dev.yml python=3.12 -y
109+
conda activate msibi-dev
110+
pip install -e . --prefix=$HOME/tmp_egginfo --no-build-isolation
111+
python -m pytest -v --color yes

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ mamba activate msibi
2626
pip install .
2727
```
2828

29+
### Using MSIBI on Windows
30+
MSIBI is not installable on Windows operating systems as HOOMD-Blue is not available for Windows. You can run MSIBI using [Windows Subsystem for Linux](https://learn.microsoft.com/en-us/windows/wsl/install) (WSL).
31+
Once you have a shell active in WSL with anaconda installed, follow the installation instructions above.
32+
33+
2934
## Using MSIBI
3035
For a full description of the API with examples see the [documentation](https://msibi.readthedocs.io/en/latest/).
3136

docs/source/installation.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,8 @@ Install from source
4040
$ export CONDA_OVERRIDE_CUDA="[YOUR_CUDA_VERSION]"
4141

4242
Please see the `HOOMD-blue installation instructions <https://hoomd-blue.readthedocs.io/en/stable/installation.html>`_ for more information.
43+
44+
45+
.. note::
46+
MSIBI is not installable on Windows operating systems as HOOMD-Blue is not available for Windows. You can run MSIBI using `Windows Subsystem for Linux <https://learn.microsoft.com/en-us/windows/wsl/install>`_ (WSL).
47+
Once you have a shell active in WSL, follow the installation instructions above.

0 commit comments

Comments
 (0)