This repository has been archived by the owner on Apr 14, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 22
Run Windows tests on GitHub Actions #153
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
347eed7
test_timeout: stop testing _make_request too
pquentin 32b88b7
test_timeout: rename timeout to short_timeout
pquentin 2d60b07
Fix flaky test_timeout
pquentin 7e91933
Remove timeout in flaky proxy tests
pquentin 011ca49
Bump cryptography to get Python 3.8 wheels
pquentin ee86d88
Move cleancov in noxfile
pquentin 7a31c47
Test Windows Python 3.x with GitHub Actions
pquentin cc368aa
Test 2.7 from GitHub Actions too
pquentin 38161aa
Use "Windows" as build name on GitHub Action Windows CI
pquentin 2b6f5b7
ci: only mark build as Windows-only
pquentin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
Windows: | ||
|
||
runs-on: windows-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [2.7, 3.5, 3.6, 3.7, 3.8] | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python 3.7 to run nox | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
if: matrix.python_version != '3.7' | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
# Work around https://github.com/theacodes/nox/issues/250 | ||
Remove-Item C:\ProgramData\Chocolatey\bin\python2.7.exe | ||
py -3.7 -m pip install nox | ||
- name: Test | ||
run: | | ||
nox -s test-${{ matrix.python-version }} | ||
- name: Coverage upload | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
run: | | ||
python.exe -m pip install codecov | ||
python.exe -m codecov |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
import platform | ||
import sys | ||
|
||
import pytest | ||
|
||
# We support Python 3.6+ for async code | ||
if sys.version_info[:2] < (3, 6): | ||
collect_ignore_glob = ["async/*.py", "with_dummyserver/async/*.py"] | ||
|
||
# The Python 3.8+ default loop on Windows breaks Tornado | ||
@pytest.fixture(scope="session", autouse=True) | ||
def configure_windows_event_loop(): | ||
if sys.version_info >= (3, 8) and platform.system() == "Windows": | ||
import asyncio | ||
|
||
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is going to be a problem at some point – hip itself will need to support, and be tested on, the default event loop :-/. (Not something for this PR to worry about of course.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, opened #154 so that we don't forget about it