Skip to content

Commit 262c926

Browse files
ganpa3timabbott
authored andcommitted
ci: Setup Github Actions for Windows.
1 parent 7b889a1 commit 262c926

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/zulip-tests.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,15 @@ jobs:
2727
tools/lint --skip=gitlint
2828
2929
test:
30-
runs-on: ubuntu-latest
30+
runs-on: ${{ matrix.os }}
3131
strategy:
3232
fail-fast: false
3333
matrix:
34+
os: [ubuntu-latest, windows-latest]
3435
python-version: [3.6, 3.7, 3.8, 3.9]
36+
exclude:
37+
- os: windows-latest
38+
python-version: 3.6 # cryptography install fails on Windows with python 3.6 since pip is quite old.
3539

3640
steps:
3741
- uses: actions/checkout@v2
@@ -42,12 +46,19 @@ jobs:
4246
python-version: ${{ matrix.python-version }}
4347

4448
- name: Install dependencies
45-
run: tools/provision --force
49+
run: python tools/provision --force
4650

47-
- name: Running Test-Suite
51+
- if: runner.os == 'Linux'
52+
name: Running Test-Suite on Linux
4853
run: |
4954
source zulip-api-py3-venv/bin/activate
5055
tools/test-main
5156
57+
- if: runner.os == 'Windows'
58+
name: Running Test-Suite on Windows
59+
run: |
60+
zulip-api-py3-venv\Scripts\Activate.ps1
61+
tools\test-main.ps1
62+
5263
- name: Codecov
5364
uses: codecov/codecov-action@v1.2.1

0 commit comments

Comments
 (0)