Skip to content

Commit 5f29d80

Browse files
asottileilevkivskyi
authored andcommitted
Add GitHub Actions for testing windows (#8327)
Resolves #8292
1 parent d56d900 commit 5f29d80

File tree

2 files changed

+50
-1
lines changed

2 files changed

+50
-1
lines changed

.github/workflows/test.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: main
2+
3+
on:
4+
push:
5+
branches: [master]
6+
tags: ['*']
7+
pull_request:
8+
paths-ignore:
9+
- 'docs/**'
10+
- '**/*.rst'
11+
- '**/*.md'
12+
- .gitignore
13+
- .travis.yml
14+
- CREDITS
15+
- LICENSE
16+
17+
jobs:
18+
build:
19+
runs-on: ${{ matrix.os }}
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
name: [windows-py37-32, windows-py37-64]
24+
include:
25+
- name: windows-py37-32
26+
python: '3.7'
27+
arch: x86
28+
os: windows-latest
29+
toxenv: py37
30+
- name: windows-py37-64
31+
python: '3.7'
32+
arch: x64
33+
os: windows-latest
34+
toxenv: py37
35+
36+
steps:
37+
- uses: actions/checkout@v1
38+
- name: initialize submodules
39+
run: git submodule update --init
40+
- uses: actions/setup-python@v1
41+
with:
42+
python-version: ${{ matrix.python }}
43+
architecture: ${{ matrix.arch }}
44+
- name: install tox
45+
run: pip install --upgrade setuptools tox==3.9.0
46+
- name: setup tox environment
47+
run: tox -e ${{ matrix.toxenv }} --notest
48+
- name: test
49+
run: tox -e ${{ matrix.toxenv }}

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ isolated_build = true
1313
[testenv]
1414
description = run the test driver with {basepython}
1515
setenv = cov: COVERAGE_FILE={toxworkdir}/.coverage.{envname}
16-
passenv = PYTEST_XDIST_WORKER_COUNT
16+
passenv = PYTEST_XDIST_WORKER_COUNT PROGRAMDATA PROGRAMFILES(X86)
1717
deps = -rtest-requirements.txt
1818
commands = python -m pytest {posargs}
1919
cov: python -m pytest {posargs: --cov mypy --cov-config setup.cfg}

0 commit comments

Comments
 (0)