Skip to content

Commit f92ae98

Browse files
committed
Run mock tests on Windows
1 parent 0360050 commit f92ae98

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.github/workflows/windows-ci.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
3+
name: Windows CI
4+
5+
on:
6+
push:
7+
branches: [master]
8+
pull_request:
9+
branches: [master]
10+
schedule:
11+
# * is a special character in YAML so you have to quote this string
12+
# Run at 1:00 every day
13+
- cron: '0 1 * * *'
14+
15+
jobs:
16+
build:
17+
18+
strategy:
19+
matrix:
20+
python-version: [3.8]
21+
platform: [windows-latest]
22+
23+
runs-on: ${{ matrix.platform }}
24+
25+
steps:
26+
- uses: actions/checkout@v2
27+
- name: "Set up Python"
28+
uses: actions/setup-python@v2
29+
with:
30+
python-version: ${{ matrix.python-version }}
31+
32+
- name: "Install dependencies"
33+
run: |
34+
python -m pip install --upgrade pip setuptools wheel
35+
# We use '--ignore-installed' to avoid GitHub's cache which can cause
36+
# issues - we have seen packages from this cache be cause trouble with
37+
# pip-extra-reqs.
38+
python -m pip install --ignore-installed --upgrade --editable .[dev]
39+
40+
- name: "Set secrets file"
41+
run: |
42+
# See the "CI Setup" document for details of how this was set up.
43+
ci/decrypt_secret.sh
44+
tar xvf "${HOME}"/secrets/secrets.tar
45+
python ci/set_secrets_file.py
46+
env:
47+
CI_PATTERN: ${{ matrix.ci_pattern }}
48+
ENCRYPTED_FILE: secrets.tar.gpg
49+
LARGE_SECRET_PASSPHRASE: ${{ secrets.PASSPHRASE_FOR_VUFORIA_SECRETS }}
50+
51+
- name: "Run tests"
52+
env:
53+
SKIP_REAL: 1
54+
run: |
55+
pytest -s -vvv tests/mock_vws

0 commit comments

Comments
 (0)