From 1545b4e46838f16e68a166d28ee71f98fdd7fbb6 Mon Sep 17 00:00:00 2001 From: Gatsik <74517072+Gatsik@users.noreply.github.com> Date: Thu, 19 Sep 2024 12:30:55 +0300 Subject: [PATCH] Run tests on linux too --- .github/workflows/checks.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index b9c82e9a5..7f5d78fa0 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -7,7 +7,10 @@ on: jobs: checks: - runs-on: windows-latest + strategy: + matrix: + os: [windows-latest, ubuntu-latest] + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 @@ -17,11 +20,19 @@ jobs: python-version: 3.12 cache: pip - - name: Install dependencies + - name: Install Linux dependencies + if: startsWith(matrix.os, 'ubuntu') run: | + sudo apt-get update && sudo apt-get install libgl1 -y python -m pip install --upgrade pip pip install -r requirements.txt + - name: Install Windows dependencies + if: startsWith(matrix.os, 'windows') + run: | + python -m pip install --upgrade pip + pip install -r win_requirements.txt + - name: Test with pytest run: | python runtests.py -vv --full-trace