remove torch-related things for macos intel #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check poetry install across platforms | |
on: [push] | |
jobs: | |
check_poetry_lock: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, macos-13, windows-latest] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Assert poetry.lock exists (Linux/macOS) | |
if: runner.os != 'Windows' | |
run: | | |
if [ ! -f poetry.lock ]; then | |
echo "Error: poetry.lock not found!" | |
exit 1 | |
fi | |
- name: Assert poetry.lock exists (Windows) | |
if: runner.os == 'Windows' | |
run: | | |
if (!(Test-Path -Path "poetry.lock")) { | |
Write-Host "Error: poetry.lock not found!" | |
exit 1 | |
} | |
shell: pwsh | |
- name: Install dependencies for Ubuntu | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libegl1-mesa-dev | |
echo "MUJOCO_GL=egl" >> $GITHUB_ENV | |
echo "PYOPENGL_PLATFORM=egl" >> $GITHUB_ENV | |
sudo apt-get install -y ffmpeg | |
- name: Install pipx and poetry | |
run: | | |
python -m pip install --upgrade pip | |
pip install pipx | |
pipx install poetry | |
- name: Install dependencies with poetry and run tests (macOS Intel) | |
if: matrix.os == 'macos-13' | |
run: | | |
poetry install --extras=dev | |
poetry run pytest flygym/tests | |
- name: Install dependencies with poetry and run tests (Linux/Windows/macOS Apple Silicon) | |
if: matrix.os == 'macos-13' | |
run: | | |
poetry install --extras=dev --extras=examples | |
poetry run pytest . |