Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test on Windows and Mac #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -38,8 +41,6 @@ jobs:

- name: Show environment
run: |
env
python -V
pip freeze

- name: Run tests
Expand All @@ -57,6 +58,7 @@ jobs:
popd

- name: Run type checking
if: ${{ matrix.os }} == 'ubuntu-latest'
run: |
mypy pypict example
mypy --allow-untyped-defs tests
Expand All @@ -67,6 +69,7 @@ jobs:
- name: Run coding style check
run: |
flake8 .

build-wheel:
runs-on: ubuntu-20.04
steps:
Expand Down