From 6e10a8b62897b75e5073825980d73ce370735b1c 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..f65e772f2 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: | + apt-get update && apt-get install libgl1 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