Skip to content

Commit

Permalink
Merge pull request #214 from robotology/ci/pixi-test-action
Browse files Browse the repository at this point in the history
Add workflow to run tests with pixi
  • Loading branch information
xela-95 authored Oct 2, 2024
2 parents 1c8c20f + 65e9ca1 commit 8ce978c
Show file tree
Hide file tree
Showing 3 changed files with 242 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/test-pixi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Run tests with pixi

on:
workflow_dispatch:
pull_request:

jobs:
pixi-test:
name: '[pixi:${{ matrix.os }}]'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [
ubuntu-22.04,
macos-latest,
# Disabled until https://github.com/robotology/gz-sim-yarp-plugins/issues/205 is fixed
# windows-2019
]

steps:
- uses: actions/checkout@v4

- name: Install mesa (software only) OpenGL driver
if: contains(matrix.os, 'ubuntu')
shell: bash
run: |
sudo apt-get update
# See https://github.com/robotology/gz-sim-yarp-plugins/pull/214#issuecomment-2387088665
sudo apt install libegl-mesa0 libgl1-mesa-dri
- name: Set up pixi
uses: prefix-dev/setup-pixi@v0.8.1
with:
run-install: true
cache: false

- name: Print pixi info
run: pixi info

- name: Run tests
run: pixi run test
190 changes: 190 additions & 0 deletions pixi.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,13 @@ compilers = "*"
gtest = "*"
fd-find = "*"
clang-format = "18.*"

[target.linux-64.dependencies]
libgl-devel = "*"
libopengl-devel = "*"
libegl-devel = "*"

[target.linux-aarch64.dependencies]
libgl-devel = "*"
libopengl-devel = "*"
libegl-devel = "*"

0 comments on commit 8ce978c

Please sign in to comment.