Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 14 additions & 13 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,39 @@ on: [push]

jobs:
linux:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-22.04

strategy:
matrix:
os: [ubuntu-latest]
ocaml: [4.03.0, 4.09.0, 4.11.1]
ocaml: [4.09.0, 4.11.1]
python: ['3.7', '3.9', '3.11']

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Setup opam and OCaml
uses: avsm/setup-ocaml@v1
uses: ocaml/setup-ocaml@v2
with:
ocaml-version: ${{ matrix.ocaml }}
ocaml-compiler: ${{ matrix.ocaml }}
- name: Install num
if: ${{ matrix.ocaml >= '4.06' }}
run: opam install -y num
- name: Set up Python 3.7 for tests (and gelpia)
uses: actions/setup-python@v1
- name: Set up Python for tests (and gelpia)
uses: actions/setup-python@v5
with:
python-version: 3.7
python-version: ${{ matrix.python }}
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
if [ "${{ matrix.python }}" = "3.7" ]; then
python -m pip install --upgrade "pip<24.1" "setuptools<69" wheel
else
python -m pip install --upgrade pip setuptools wheel
fi
pip install pyyaml
- name: Install gelpia dependencies
if: startsWith(matrix.os, 'ubuntu')
run: |
pip install sly
sudo apt install flex bison wget
- name: Download and build gelpia
if: startsWith(matrix.os, 'ubuntu')
run: |
git clone https://github.com/soarlab/gelpia.git
cd gelpia
Expand All @@ -48,7 +50,6 @@ jobs:
grep opt -C 3 default.cfg
make test
- name: Run basic tests with gelpia
if: startsWith(matrix.os, 'ubuntu')
run: |
sed -i "s|^opt = bb|opt = gelpia|g" default.cfg
make test
Expand Down
Loading