Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workflow to run tests with pixi #214

Merged
merged 7 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
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
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/[email protected]
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 = "*"
Loading