Skip to content

Commit

Permalink
Don't use uvloop if on Windows and add Windows runner back into CI
Browse files Browse the repository at this point in the history
  • Loading branch information
golmschenk committed Feb 6, 2024
1 parent b7994a9 commit 38006ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest ]
os: [ ubuntu-latest, windows-latest, macos-latest ]
steps:
- uses: actions/checkout@v3

Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
import argparse
import platform
from pathlib import Path

import pandas as pd
import uvloop
from bokeh import plotting
from bokeh.application import Application
from bokeh.application.handlers import DirectoryHandler
from bokeh.server.server import Server
import argparse

plotting.output_notebook.__doc__ = ''


def run_viewer(light_curve_path: Path, port: int = 5007):
uvloop.install()
if platform.system() != 'Windows':
uvloop.install()
print(f'Opening viewer on http://localhost:{port}/')
handler = DirectoryHandler(filename=str(Path(__file__).parent), argv=[light_curve_path])
application = Application(handler)
Expand Down

0 comments on commit 38006ad

Please sign in to comment.