-
Notifications
You must be signed in to change notification settings - Fork 51
49 lines (46 loc) · 1.23 KB
/
ubuntu.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
name: pomdp-py repo ubuntu build
on:
push:
branches: [ main, dev-latest ]
pull_request:
types:
- opened
- reopened
- synchronize
- labeled
- unlabeled
- ready_for_review
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Build dependencies
run: |
# build pomdp-solve
sudo apt-get update
sudo apt-get install -y autoconf automake libtool
commit_hash=4f5d399f260f7789bc1d95baab069eef5c93aaf9
git clone https://github.com/cassandra/pomdp-solve.git thirdparty/pomdp-solve
cd thirdparty/pomdp-solve && git checkout $commit_hash
./configure
make
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
- name: Test
working-directory: .
run: |
export POMDP_SOLVE_PATH=./thirdparty/pomdp-solve/src/pomdp-solve
python tests/test_all.py