Skip to content

Commit

Permalink
enable mac os x test and improve pypi classifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
congzhangzh committed Nov 3, 2024
1 parent e52ffa7 commit 0efe7fc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ jobs:
test:
strategy:
matrix:
#os: [ubuntu-latest, windows-latest, macos-latest]
os: [windows-latest, ubuntu-latest]
os: [ubuntu-latest, windows-latest, macos-latest]

runs-on: ${{ matrix.os }}

env:
CI: true

steps:
- uses: actions/checkout@v4

Expand Down
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,19 @@ classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: User Interfaces",
]
keywords = ["webview", "gui", "desktop", "application", "html", "web"]
dependencies = []
requires-python = ">=3.7"
requires-python = ">=3.8"

[project.urls]
Homepage = "https://github.com/congzhangzh/webview_python"
Expand Down
6 changes: 6 additions & 0 deletions tests/test_webview.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import os
import platform
import unittest
from webview import Webview, Size, SizeHint

@unittest.skipIf(
platform.system() == "Darwin" and bool(os.getenv("CI")),
"Skipping test on macOS CI"
)
class TestWebview(unittest.TestCase):
def test_create_webview(self):
webview = Webview()
Expand Down

0 comments on commit 0efe7fc

Please sign in to comment.