Skip to content

Commit 9d698ce

Browse files
Merge pull request #1259 from VWS-Python/windows-actions
Windows CI on GH actions
2 parents a5a22c5 + 76af248 commit 9d698ce

File tree

3 files changed

+45
-12
lines changed

3 files changed

+45
-12
lines changed

.appveyor.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ on:
1515
jobs:
1616
build:
1717

18-
runs-on: ubuntu-latest
19-
2018
strategy:
2119
matrix:
2220
python-version: [3.7, 3.8]
21+
platform: [ubuntu-latest]
22+
23+
runs-on: ${{ matrix.platform }}
2324

2425
steps:
2526
- uses: actions/checkout@v2

.github/workflows/windows-ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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.7, 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@v1
29+
with:
30+
python-version: ${{ matrix.python-version }}
31+
32+
- name: "Install dependencies"
33+
run: |
34+
python -m pip install --upgrade pip
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: "Run tests"
41+
run: |
42+
pytest -s -vvv --cov-fail-under 100 --cov=src/ --cov=tests tests/ --cov-report=xml

0 commit comments

Comments
 (0)