Skip to content

Commit

Permalink
Run the tests totally independently
Browse files Browse the repository at this point in the history
  • Loading branch information
liamhuber committed Dec 1, 2023
1 parent 6e34a01 commit ea79417
Show file tree
Hide file tree
Showing 4 changed files with 134 additions and 18 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/unittest-openmpi-11.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This workflow is used to run the unittest of pyiron

name: Unittests-openmpi

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
include:
- operating-system: macos-11
python-version: '3.11'
label: osx-11-64-py-3-11-openmpi
prefix: /Users/runner/miniconda3/envs/my-env

steps:
- uses: actions/checkout@v2
- uses: conda-incubator/[email protected]
with:
python-version: ${{ matrix.python-version }}
mamba-version: "*"
channels: conda-forge
miniforge-variant: Mambaforge
channel-priority: strict
auto-update-conda: true
environment-file: .ci_support/environment-openmpi.yml
- name: Test
shell: bash -l {0}
timeout-minutes: 5
run: |
pip install versioneer[toml]==0.29
pip install . --no-deps --no-build-isolation
cd tests
python -m unittest discover .
env:
OMPI_MCA_plm: 'isolated'
OMPI_MCA_rmaps_base_oversubscribe: 'yes'
OMPI_MCA_btl_vader_single_copy_mechanism: 'none'
44 changes: 44 additions & 0 deletions .github/workflows/unittest-openmpi-12.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# This workflow is used to run the unittest of pyiron

name: Unittests-openmpi

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
include:
- operating-system: macos-12
python-version: '3.11'
label: osx-12-64-py-3-11-openmpi
prefix: /Users/runner/miniconda3/envs/my-env
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/[email protected]
with:
python-version: ${{ matrix.python-version }}
mamba-version: "*"
channels: conda-forge
miniforge-variant: Mambaforge
channel-priority: strict
auto-update-conda: true
environment-file: .ci_support/environment-openmpi.yml
- name: Test
shell: bash -l {0}
timeout-minutes: 5
run: |
pip install versioneer[toml]==0.29
pip install . --no-deps --no-build-isolation
cd tests
python -m unittest discover .
env:
OMPI_MCA_plm: 'isolated'
OMPI_MCA_rmaps_base_oversubscribe: 'yes'
OMPI_MCA_btl_vader_single_copy_mechanism: 'none'
45 changes: 45 additions & 0 deletions .github/workflows/unittest-openmpi-13.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This workflow is used to run the unittest of pyiron

name: Unittests-openmpi

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
include:
- operating-system: macos-13
python-version: '3.11'
label: osx-13-64-py-3-11-openmpi
prefix: /Users/runner/miniconda3/envs/my-env

steps:
- uses: actions/checkout@v2
- uses: conda-incubator/[email protected]
with:
python-version: ${{ matrix.python-version }}
mamba-version: "*"
channels: conda-forge
miniforge-variant: Mambaforge
channel-priority: strict
auto-update-conda: true
environment-file: .ci_support/environment-openmpi.yml
- name: Test
shell: bash -l {0}
timeout-minutes: 5
run: |
pip install versioneer[toml]==0.29
pip install . --no-deps --no-build-isolation
cd tests
python -m unittest discover .
env:
OMPI_MCA_plm: 'isolated'
OMPI_MCA_rmaps_base_oversubscribe: 'yes'
OMPI_MCA_btl_vader_single_copy_mechanism: 'none'
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,6 @@ jobs:
label: osx-latest-64-py-3-11-openmpi
prefix: /Users/runner/miniconda3/envs/my-env


- operating-system: macos-11
python-version: '3.11'
label: osx-11-64-py-3-11-openmpi
prefix: /Users/runner/miniconda3/envs/my-env


- operating-system: macos-12
python-version: '3.11'
label: osx-12-64-py-3-11-openmpi
prefix: /Users/runner/miniconda3/envs/my-env


- operating-system: macos-13
python-version: '3.11'
label: osx-13-64-py-3-11-openmpi
prefix: /Users/runner/miniconda3/envs/my-env

steps:
- uses: actions/checkout@v2
- uses: conda-incubator/[email protected]
Expand Down

0 comments on commit ea79417

Please sign in to comment.