Merge pull request #109 from OKaluza/master #343
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: Test | |
#Run on pushed commits but not tags | |
#https://github.community/t/dont-run-on-tag-creation/137469/7 | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
build: | |
strategy: | |
matrix: | |
#os: [ubuntu-latest, macos-latest, windows-latest] | |
os: [ubuntu-latest, macos-latest] | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Display Python version | |
run: python -c "import sys; print(sys.version)" | |
- name: Set up linux dependencies | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libosmesa6 libosmesa6-dev libglapi-mesa mesa-common-dev libglx-mesa0 libgl1-mesa-dri libgl-dev libglx-dev libgl1 libglx0 libglvnd0 | |
- name: Install prereqs | |
run: python -m pip install -r requirements.txt | |
- name: Build/install | |
run: python -m pip install . | |
- name: Run headless test | |
env: | |
LV_CONTEXT: moderngl | |
LV_ECHO_FAIL: 1 | |
LV_ARGS: -v | |
run: | | |
python -m pip install moderngl | |
git clone --depth 1 https://github.com/lavavu/Testing | |
cd Testing | |
python runall.py | |
cd .. | |