Skip to content

Bump pypa/gh-action-pypi-publish from 1.10.0 to 1.10.1 #225

Bump pypa/gh-action-pypi-publish from 1.10.0 to 1.10.1

Bump pypa/gh-action-pypi-publish from 1.10.0 to 1.10.1 #225

Workflow file for this run

on:
push:
branches:
- main
pull_request:
branches:
- main
name: paralell pytest
jobs:
py-check:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.py }})
strategy:
fail-fast: false
matrix:
config:
- {os: windows-2022, py: '3.12'}
- {os: macOS-14, py: '3.11'}
- {os: ubuntu-24.04, py: '3.10'}
- {os: ubuntu-24.04, py: '3.12'}
env:
SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.config.py }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .[ci]
- name: Install MPI (linux)
if: contains(matrix.config.os, 'ubuntu')
run: |
sudo apt-get update
sudo apt-get install -y mpi-default-dev
pip install mpi4py
- name: Download Microsoft MPI
if: contains(matrix.config.os, 'windows')
run: (new-object net.webclient).DownloadFile("https://download.microsoft.com/download/a/5/2/a5207ca5-1203-491a-8fb8-906fd68ae623/msmpisetup.exe",
"msmpisetup.exe")
shell: powershell
- name: Install MPI (win)
if: contains(matrix.config.os, 'windows')
run: |
msmpisetup.exe -unattend -minimal
pip install mpi4py
shell: cmd
- name: Install MPI (osx)
if: contains(matrix.config.os, 'macOS')
run: |
brew install openmpi
pip install mpi4py
- name: (disabled) run pytest
if: contains(matrix.config.os, 'windows')
run: |
print mpiexec -n 2 pytest
- name: (disabled) run pytest
if: ${{ ! contains(matrix.config.os, 'windows') }}
run: |
echo mpirun -np 2 pytest