Skip to content

Update js-docs-builder.yml #51

Update js-docs-builder.yml

Update js-docs-builder.yml #51

name: Python - integration tests
on:
push:
branches:
- 'main'
paths:
- 'python/**'
- '.github/workflows/**'
pull_request:
paths:
- 'python/**'
- '.github/workflows/**'
permissions:
contents: read
jobs:
e2e-testing:
strategy:
matrix:
python-version: [ "3.8.x", "3.9.x", "3.10.x", "3.11.x", "3.12.x" ]
os: [ "ubuntu-latest", "macos-latest", "windows-latest" ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # pin@v4
- name: Setup Python
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # pin@v5
with:
python-version: '${{ matrix.python-version }}'
- name: Install poetry
uses: abatilo/actions-poetry@7b6d33e44b4f08d7021a1dee3c044e9c253d6439 # pin@v3
with:
poetry-version: "1.7.1"
- name: Install the project dependencies
working-directory: python
run: poetry build
- name: List wheels
working-directory: python
run: python -c "import os; print('\n'.join(os.listdir('dist')))"
- name: Install magika
working-directory: python
run: python -m pip install $(python -c "import glob; print(glob.glob('dist/magika-*.whl')[0])")
shell: bash # Allows for cross-platform
- name: Run magika with tests_data
run: magika -r tests_data/ || exit 1