-
Notifications
You must be signed in to change notification settings - Fork 33
40 lines (38 loc) · 1.03 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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