-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.09 KB
/
tests.yml
File metadata and controls
50 lines (42 loc) · 1.09 KB
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
name: tests
on:
push:
branches:
- main
- final_project
- workflows
pull_request:
branches:
- main
- final_project
jobs:
test:
name: Testing using pytest
runs-on: ubuntu-latest
container:
image: cupy/cupy:v13.4.0
steps:
- uses: actions/checkout@v3
- name: Clean previous builds
run: rm -rf build dist *.egg-info
- name: Install system dependencies
run: |
apt-get update && apt-get install -y python3.10-venv python3-pip cmake
- name: Install MPI (OpenMPI)
run: apt-get update && apt-get install -y libopenmpi-dev openmpi-bin
- name: Install additional dependencies
run: |
python3.10 -m venv venv
source venv/bin/activate
python3.10 -m pip install --no-cache-dir .
shell: bash -e {0}
- name: Test with pytest
run: |
source venv/bin/activate
mkdir -p build
cmake -B build -S .
cd build
make
cd ..
python3.10 -m pytest
shell: bash -e {0}