Skip to content

Commit

Permalink
github actions expanded to other OS
Browse files Browse the repository at this point in the history
  • Loading branch information
wschuell committed Oct 20, 2023
1 parent cd23e97 commit 0844b86
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ on:

jobs:
build:

runs-on: [ubuntu-latest, macos-latest, windows-latest]
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
services:
# Label used to access the service container
postgres:
Expand Down
8 changes: 7 additions & 1 deletion tests/testmodule/test_0_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,11 @@ def test_import():
dir_name = os.path.dirname(os.path.dirname(os.path.dirname(path)))
with open(os.path.join(dir_name, "setup.py"), "r") as f:
file_content = f.read()
libname = file_content.split("setup(")[1].split("name='")[1].split("'")[0]
libname = (
file_content.split("setup(")[1]
.strip(" \t\n")
.split("name=")[1]
.split(",")[0]
.strip("""'" """)
)
importlib.import_module(libname)

0 comments on commit 0844b86

Please sign in to comment.