Skip to content

Commit c927266

Browse files
GH-42: Integrate CircleCI for running windows tests (GH-43)
* Create a config file to setup CircleCI * Setup CircleCi workflows to run tests on Windows * Use GitHub workflows only for Ubuntu and MacOS
1 parent 9db66aa commit c927266

File tree

3 files changed

+29
-8
lines changed

3 files changed

+29
-8
lines changed

.circleci/config.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
version: 2.1
2+
3+
orbs:
4+
win: circleci/[email protected]
5+
6+
jobs:
7+
test:
8+
executor: win/default
9+
steps:
10+
- checkout
11+
12+
- run:
13+
name: Install Dependencies
14+
command: |
15+
pip install --upgrade pip
16+
python -m pip install -e .
17+
python -m pip install tox
18+
19+
- run:
20+
name: Run tests
21+
command: tox
22+
23+
workflows:
24+
windows-tests:
25+
jobs:
26+
- test

.github/workflows/tests.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ${{ matrix.os }}
99
strategy:
1010
matrix:
11-
os: [ ubuntu-latest, windows-latest, macOS-latest ]
11+
os: [ ubuntu-latest, macOS-latest ]
1212
python-version: [ "3.7", "3.8", "3.9" ]
1313

1414
steps:
@@ -19,7 +19,8 @@ jobs:
1919
python-version: ${{ matrix.python-version }}
2020
- name: Install dependencies
2121
run: |
22-
python -m pip install --upgrade pip
22+
pip install --upgrade pip
23+
python -m pip install -e .
2324
pip install tox tox-gh-actions
2425
- name: Test with tox
2526
run: tox

tox.ini

-6
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ envlist =
66
python3.9
77
isolated_build = true
88

9-
[gh-actions]
10-
python =
11-
3.7: python3.7
12-
3.8: python3.8
13-
3.9: python3.9
14-
159
[testenv]
1610
setenv =
1711
PYTHONPATH = {toxinidir}

0 commit comments

Comments
 (0)