Skip to content

Set-up MPI for publish action #109

Set-up MPI for publish action

Set-up MPI for publish action #109

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
env:
# Setting RDMAV_FORK_SAFE=1 to avoid libfabric EFA provider issues with
# fork() on Python 3.9 and Ubuntu.
RDMAV_FORK_SAFE: 1
jobs:
test:
name: Python ${{ matrix.python-version }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
uv_version: "0.5.2"
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest"]
python-version: ["3.9", "3.12"]
fail-fast: false
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Setup MPI
uses: mpi4py/setup-mpi@v1
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
version: ${{ env.uv_version }}
- name: Install the project
run: uv sync --extra test --python ${{ matrix.python-version }}
- name: Run tests
run: uv run pytest --cov=e3fp --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: false