Skip to content

Add GitHub Actions for testing windows #8327

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: main

on:
push:
branches: [master]
tags: ['*']
pull_request:
paths-ignore:
- 'docs/**'
- '**/*.rst'
- '**/*.md'
- .gitignore
- .travis.yml
- CREDITS
- LICENSE

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
name: [windows-py37-32, windows-py37-64]
include:
- name: windows-py37-32
python: '3.7'
arch: x86
os: windows-latest
toxenv: py37
- name: windows-py37-64
python: '3.7'
arch: x64
os: windows-latest
toxenv: py37

steps:
- uses: actions/checkout@v1
- name: initialize submodules
run: git submodule update --init
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}
architecture: ${{ matrix.arch }}
- name: install tox
run: pip install --upgrade setuptools tox==3.9.0
- name: setup tox environment
run: tox -e ${{ matrix.toxenv }} --notest
- name: test
run: tox -e ${{ matrix.toxenv }}
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ isolated_build = true
[testenv]
description = run the test driver with {basepython}
setenv = cov: COVERAGE_FILE={toxworkdir}/.coverage.{envname}
passenv = PYTEST_XDIST_WORKER_COUNT
passenv = PYTEST_XDIST_WORKER_COUNT PROGRAMDATA PROGRAMFILES(X86)
deps = -rtest-requirements.txt
commands = python -m pytest {posargs}
cov: python -m pytest {posargs: --cov mypy --cov-config setup.cfg}
Expand Down