DO NOT MERGE - gh workflow: add poc to show different onnxruntime results on windows #4
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
name: POC for debugging windows onnxruntime diff | |
on: | |
workflow_dispatch: | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
run-inference: | |
strategy: | |
matrix: | |
python-version: ["3.12"] | |
os: [ "ubuntu-latest", "macos-latest", "windows-latest" ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # pin@v4 | |
- name: Setup Python | |
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # pin@v5 | |
with: | |
python-version: '${{ matrix.python-version }}' | |
- name: Install magika with pip | |
run: python3 -m pip install magika==0.5.1 | |
- run: python3 -c "import magika, pathlib; m = magika.Magika(); res = m.identify_path(pathlib.Path('tests_data/basic/python/code.py')); print(res)" |