mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 02:50:01 +00:00
Fix failing test by bumping commit ref #7193
This commit is contained in:
@@ -66,7 +66,7 @@ PLATFORMTAG:=win_amd64
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
BINARY_VERSION:=0.8.4
|
BINARY_VERSION:=0.8.4
|
||||||
BUILD_COMMIT:=6924012
|
BUILD_COMMIT:=c9df87f
|
||||||
IOS_URL:=https://s3.amazonaws.com/ifcopenshell-builds/ifcopenshell-python-$(PYNUMBER)-v$(BINARY_VERSION)-$(BUILD_COMMIT)-$(PLATFORM).zip
|
IOS_URL:=https://s3.amazonaws.com/ifcopenshell-builds/ifcopenshell-python-$(PYNUMBER)-v$(BINARY_VERSION)-$(BUILD_COMMIT)-$(PLATFORM).zip
|
||||||
IFCCONVERT_URL:=https://s3.amazonaws.com/ifcopenshell-builds/IfcConvert-v$(BINARY_VERSION)-$(BUILD_COMMIT)-$(PLATFORM).zip
|
IFCCONVERT_URL:=https://s3.amazonaws.com/ifcopenshell-builds/IfcConvert-v$(BINARY_VERSION)-$(BUILD_COMMIT)-$(PLATFORM).zip
|
||||||
|
|
||||||
|
|||||||
@@ -18,9 +18,15 @@
|
|||||||
|
|
||||||
import http.client
|
import http.client
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
from typing import Sequence
|
||||||
from typing_extensions import assert_never
|
from typing_extensions import assert_never
|
||||||
from urllib.parse import urlparse
|
from urllib.parse import urlparse
|
||||||
|
|
||||||
|
try:
|
||||||
|
from bs4 import BeautifulSoup
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
# Where it's also reflected:
|
# Where it's also reflected:
|
||||||
# - .github/workflows/ci-ifcopenshell-python.yml
|
# - .github/workflows/ci-ifcopenshell-python.yml
|
||||||
# - .github/workflows/ci-ifcopenshell-python-pypi.yml
|
# - .github/workflows/ci-ifcopenshell-python-pypi.yml
|
||||||
@@ -91,9 +97,13 @@ class TestPackageSupportedPlatforms:
|
|||||||
required_urls.append(url)
|
required_urls.append(url)
|
||||||
|
|
||||||
# Verify all required URLs are present in the build HTML.
|
# Verify all required URLs are present in the build HTML.
|
||||||
missing_urls: list[str] = []
|
missing_urls: Sequence[str]
|
||||||
for url in required_urls:
|
if "BeautifulSoup" in globals():
|
||||||
if url not in build_html:
|
missing_urls = set(required_urls) - set(a["href"] for a in BeautifulSoup(build_html).find_all("a"))
|
||||||
missing_urls.append(url)
|
else:
|
||||||
|
missing_urls = []
|
||||||
|
for url in required_urls:
|
||||||
|
if url not in build_html:
|
||||||
|
missing_urls.append(url)
|
||||||
|
|
||||||
assert not missing_urls
|
assert not missing_urls
|
||||||
|
|||||||
Reference in New Issue
Block a user