Skip to content

Commit 833992a

Browse files
Add windows separately.
1 parent caa847c commit 833992a

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

.github/workflows/pytest.yml

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: Validate Python Code
44
on: [push, pull_request]
55

66
jobs:
7-
build:
7+
test-mac-linux:
88

99
runs-on: ${{ matrix.os }}
1010
strategy:
@@ -33,9 +33,6 @@ jobs:
3333
fi
3434
;;
3535
macOS)
36-
brew install ccache
37-
brew tap homebrew/cask-fonts
38-
brew install font-noto-sans-cjk-sc
3936
;;
4037
esac
4138
@@ -48,6 +45,28 @@ jobs:
4845
run: |
4946
flake8 matplotview --count --select=E9,F63,F7,F82 --show-source --statistics
5047
flake8 matplotview --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
48+
- name: Test with pytest
49+
run: |
50+
pytest
51+
52+
test-windows:
53+
54+
runs-on: windows-latest
55+
strategy:
56+
matrix:
57+
python-version: [ "3.7", "3.8", "3.9" ]
58+
59+
steps:
60+
- uses: actions/checkout@v3
61+
- name: Set up Python ${{ matrix.python-version }}
62+
uses: actions/setup-python@v3
63+
with:
64+
python-version: ${{ matrix.python-version }}
65+
66+
- name: Install dependencies
67+
run: |
68+
python -m pip install --upgrade pip
69+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
5170
- name: Test with pytest
5271
run: |
5372
pytest

0 commit comments

Comments
 (0)