From a582674d264b21da89bbad70c517b45fd3d6f6ae Mon Sep 17 00:00:00 2001 From: Kenichi Maehashi Date: Sat, 26 Feb 2022 15:45:04 +0900 Subject: [PATCH] add test on Windows and Mac --- .github/workflows/test.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c19d82a..f42239a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,9 +3,11 @@ on: [push, pull_request] jobs: test: - runs-on: ubuntu-20.04 + name: test-${{ matrix.os }}-py${{ matrix.python-version }} + runs-on: ${{ matrix.os }} strategy: matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] python-version: ['3.7', '3.8', '3.9', '3.10'] steps: @@ -26,6 +28,7 @@ jobs: make pict echo "${PWD}" >> $GITHUB_PATH echo "LD_LIBRARY_PATH=${PWD}" >> $GITHUB_ENV + echo "DYLD_LIBRARY_PATH=${PWD}" >> $GITHUB_ENV popd - name: Install dependencies @@ -38,8 +41,6 @@ jobs: - name: Show environment run: | - env - python -V pip freeze - name: Run tests @@ -57,6 +58,7 @@ jobs: popd - name: Run type checking + if: ${{ matrix.os }} == 'ubuntu-latest' run: | mypy pypict example mypy --allow-untyped-defs tests @@ -67,6 +69,7 @@ jobs: - name: Run coding style check run: | flake8 . + build-wheel: runs-on: ubuntu-20.04 steps: