Skip to content

Commit

Permalink
[wip]
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoferigo committed Jun 29, 2021
1 parent 9f71136 commit 2a1e563
Showing 1 changed file with 23 additions and 7 deletions.
30 changes: 23 additions & 7 deletions .github/workflows/conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,21 @@ on:
jobs:

build-and-test:
name: ${{ matrix.os }}@${{ matrix.python }}@${{ matrix.ignition }}
name: ${{ matrix.os }}@${{ matrix.python }}
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
ignition:
# - gazebo4
- gazebo5
os:
- ubuntu-latest
# - macOS-latest
# - windows-latest
python:
- 3.8
# - 3.9
build_type:
- Debug

Expand All @@ -48,7 +46,7 @@ jobs:
mamba-version: "*"
channel-priority: true
auto-update-conda: true
activate-environment: gym_ignition
activate-environment: ci
python-version: ${{ matrix.python }}
channels: conda-forge,robotology,defaults

Expand All @@ -62,10 +60,22 @@ jobs:
run: |
mamba install -y cmake compilers ninja pkg-config swig pybind11 pytest
mamba install -y mesa-libgl-devel-cos7-x86_64
mamba install -y libignition-${{ matrix.ignition }}
mamba install -y gym scipy numpy lxml
mamba install -c robotology idyntree
- name: Ignition Gazebo [stable]
if: |
github.event_name == 'release' ||
github.ref == 'refs/heads/master' ||
(github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'master')
run: mamba install -y libignition-gazebo4

- name: Ignition Gazebo [nightly]
if: |
(github.event_name == 'push' && github.ref != 'refs/heads/master') ||
(github.event_name == 'pull_request' && github.event.pull_request.base.ref != 'master')
run: mamba install -y libignition-gazebo5

- name: Configure [linux|macos]
if: contains(matrix.os, 'macos') || contains(matrix.os, 'ubuntu')
run: |
Expand Down Expand Up @@ -96,5 +106,11 @@ jobs:
cmake --build build/ --target install
pip install -e .
- name: Inspect Python ABI (core)
run: ldd /usr/share/miniconda/envs/ci/lib/python3.8/site-packages/scenario/bindings/_core.so

- name: Inspect Python ABI (gazebo)
run: ldd /usr/share/miniconda/envs/ci/lib/python3.8/site-packages/scenario/bindings/_gazebo.so

- name: Test
run: pytest tests/
run: python -m pytest tests/

0 comments on commit 2a1e563

Please sign in to comment.