From df2ac7a938a8f24413b75d3d88dad252b89911b0 Mon Sep 17 00:00:00 2001 From: Tushar <30565750+tushar5526@users.noreply.github.com> Date: Fri, 17 Nov 2023 15:28:38 +0530 Subject: [PATCH 1/4] feat: macos tests --- .github/workflows/build-tests.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-tests.yml b/.github/workflows/build-tests.yml index faf199cb..60a0cb2b 100644 --- a/.github/workflows/build-tests.yml +++ b/.github/workflows/build-tests.yml @@ -51,7 +51,7 @@ jobs: run: | pytest -svv p5 - sanity-tests: + sanity-tests-linux: needs : pytest strategy: matrix: @@ -75,3 +75,23 @@ jobs: uses: GabrielBB/xvfb-action@v1 with: run: python p5/visualTests/sanity_testing.py + + sanity-tests-macos: + strategy: + matrix: + os: [macos-latest] + python-version: [ '3.7', '3.8', '3.9', '3.10'] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + brew install glfw + python -m pip install --upgrade pip + pip install wheel + pip install . + python p5/visualTests/sanity_testing.py \ No newline at end of file From b783dd26eb1a38a4ecac6b425605eccb22d75960 Mon Sep 17 00:00:00 2001 From: Tushar <30565750+tushar5526@users.noreply.github.com> Date: Fri, 17 Nov 2023 15:31:21 +0530 Subject: [PATCH 2/4] add VB for macos --- .github/workflows/build-tests.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-tests.yml b/.github/workflows/build-tests.yml index 60a0cb2b..2c7e1c81 100644 --- a/.github/workflows/build-tests.yml +++ b/.github/workflows/build-tests.yml @@ -94,4 +94,7 @@ jobs: python -m pip install --upgrade pip pip install wheel pip install . - python p5/visualTests/sanity_testing.py \ No newline at end of file + - name: Run headless tests + uses: GabrielBB/xvfb-action@v1 + with: + run: python p5/visualTests/sanity_testing.py \ No newline at end of file From e729960787f2c1f5e10e44674139999d1e7d274e Mon Sep 17 00:00:00 2001 From: Tushar <30565750+tushar5526@users.noreply.github.com> Date: Fri, 17 Nov 2023 15:39:56 +0530 Subject: [PATCH 3/4] Install glew --- .github/workflows/build-tests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-tests.yml b/.github/workflows/build-tests.yml index 2c7e1c81..8e4cb85b 100644 --- a/.github/workflows/build-tests.yml +++ b/.github/workflows/build-tests.yml @@ -91,10 +91,11 @@ jobs: - name: Install dependencies run: | brew install glfw + brew install glew python -m pip install --upgrade pip pip install wheel pip install . - name: Run headless tests uses: GabrielBB/xvfb-action@v1 with: - run: python p5/visualTests/sanity_testing.py \ No newline at end of file + run: python p5/visualTests/sanity_testing.py \ No newline at end of file From 651511e5a463a57cbff6ce902de5560548759d70 Mon Sep 17 00:00:00 2001 From: Tushar <30565750+tushar5526@users.noreply.github.com> Date: Fri, 17 Nov 2023 15:58:47 +0530 Subject: [PATCH 4/4] Insatll xquartz --- .github/workflows/build-tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-tests.yml b/.github/workflows/build-tests.yml index 8e4cb85b..116422d1 100644 --- a/.github/workflows/build-tests.yml +++ b/.github/workflows/build-tests.yml @@ -92,6 +92,7 @@ jobs: run: | brew install glfw brew install glew + brew install XQuartz python -m pip install --upgrade pip pip install wheel pip install .