-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (55 loc) · 1.87 KB
/
test.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Use pre-built docker containers to run our unit tests on different python versions.
name: Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
linux:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.10", "3.11", "3.12"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: ./test_scripts/install_deps_github_ubuntu.sh
- name: Install Package
run: pip3 install .
- name: Run Serial Test
run: MPI_DISABLE=1 python3 -c 'import pshmem.test; pshmem.test.run()'
- name: Run MPI Test on 1 Process
run: mpirun -np 1 python3 -c 'import pshmem.test; pshmem.test.run()'
- name: Run MPI Test on 2 Processes
run: mpirun -np 2 python3 -c 'import pshmem.test; pshmem.test.run()'
macos:
runs-on: macos-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: ./test_scripts/install_deps_github_macos.sh
- name: Install Package
run: pip3 install .
- name: Run Serial Test
run: MPI_DISABLE=1 python3 -c 'import pshmem.test; pshmem.test.run()'
- name: Run MPI Test on 1 Process
run: mpirun -np 1 python3 -c 'import pshmem.test; pshmem.test.run()'
- name: Run MPI Test on 2 Processes
run: mpirun -np 2 python3 -c 'import pshmem.test; pshmem.test.run()'