-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dylib scan test action, intended only to print nuitka relevant pa…
…ths and variables.
- Loading branch information
Showing
4 changed files
with
63 additions
and
5 deletions.
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,43 @@ | ||
on: | ||
push: | ||
branches: | ||
- "dylib-scan-gh-tests*" | ||
|
||
env: | ||
PYTHON_VERSION: "3.9" | ||
POETRY_VERSION: "1.8.1" | ||
POETRY_URL: https://install.python-poetry.org | ||
NUITKA_CACHE_DIR: ~/.nuitka/cache | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
# Do not use the latest versions in order to be backward compatible. | ||
# In particular, macos 14+ will build for arm only. | ||
# os: [macos-12, ubuntu-20.04, windows-2019] | ||
os: [macos-12, ubuntu-20.04] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Check-out repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python ${{ env.PYTHON_VERSION }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
cache: 'pip' # caching pip dependencies | ||
|
||
# Install using pip / poetry-core backend via PEP 517 | ||
- run: pip install . | ||
|
||
- run: pip install "git+https://[email protected]/Nuitka/Nuitka.git/@91ad4a6255d97d09cee7734d5184f685fb7181cd#egg=nuitka" | ||
|
||
# Run test script | ||
- run: python src/ecgviewer/nuitka_tests.py |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from nuitka import PythonFlavors | ||
import sys | ||
import os | ||
|
||
print(f"Executable: {sys.executable}") | ||
print(f"Flavour: {PythonFlavors.getPythonFlavorName()}") | ||
|
||
print(f"Prefix Path: {PythonFlavors.getSystemPrefixPath()}") | ||
print(f"Env GH Actions: {os.getenv('GITHUB_ACTIONS') == 'true'}") | ||
print(f"Is GH Action Python: {PythonFlavors.isGithubActionsPython()}") | ||
|
||
try: | ||
print(f"Homebrew Path:: {PythonFlavors.getHomebrewInstallPath()}") | ||
except Exception as e: | ||
print(f"Except Homebrew Path ({e}).") |