generated from SylvanBrocard/dpu_trees
-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (58 loc) · 1.64 KB
/
pip.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
73
74
75
name: "Pip"
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
jobs:
build-deb:
name: Build with Pip (Debian package)
strategy:
fail-fast: false
matrix:
platform: [ubuntu-22.04]
python-version: ["3.7", "3.8", "3.9", "3.10"]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Download SDK
run: wget http://sdk-releases.upmem.com/2024.2.0/ubuntu_22.04/upmem_2024.2.0_amd64.deb
- name: Install SDK
run: sudo apt install -y ./upmem_2024.2.0_amd64.deb
- name: Build and install
run: pip install --verbose .[test]
- name: Test
run: pytest
build-src:
name: Build with Pip (Source install)
strategy:
fail-fast: false
matrix:
platform: [ubuntu-22.04]
python-version: ["3.7", "3.8", "3.9", "3.10"]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Download SDK
run: wget http://sdk-releases.upmem.com/2024.2.0/ubuntu_22.04/upmem-2024.2.0-Linux-x86_64.tar.gz
- name: Untar SDK
run: tar -zxvf upmem-2024.2.0-Linux-x86_64.tar.gz
- name: Build and install
run: |
source upmem-2024.2.0-Linux-x86_64/upmem_env.sh
pip install --verbose .[test]
- name: Test
run: |
source upmem-2024.2.0-Linux-x86_64/upmem_env.sh
pytest