-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (40 loc) · 1.15 KB
/
cpu.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
name: cpu (build & test)
run-name: ${{ github.actor }} is building & testing for cpu
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-and-run-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Bootstrap and configure
uses: ./.github/actions/configure-cpu
- name: Build tests
run: meson compile -C build/ tests
- name: Run tests
run: meson test -C build/ -t 0
build-examples:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Bootstrap and configure
uses: ./.github/actions/configure-cpu
- name: Build examples
run: meson compile -C build/ examples
build-and-test-python:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Bootstrap and configure
uses: ./.github/actions/configure-cpu
- name: Build python bindings
run: meson compile -C build/ python
- name: Run python tests
run: |
PYTHONPATH=./build/ginn-py/ pytest -s --color=yes ./ginn-py/test/