Skip to content

Commit

Permalink
Add unit test steps
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoernrennfanz committed Dec 4, 2024
1 parent bfbf2bc commit 2bcf313
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,28 @@ jobs:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}

- name: Set up Python ${{ matrix.python-version }} (Docker)
- name: Run pypylon unit tests for Python ${{ matrix.python-version }}
if: runner.os == 'Linux' && matrix.architecture == 'arm64'
run: |
docker run --rm --it python:${{ matrix.python-version }}-slim /bin/bash -c "python --version"
docker run --rm --platform linux/arm64 -v $(pwd):/work -w /work arm64v8/python:${{ matrix.python-version }}-slim /bin/bash -c "
python -m pip install --upgrade pip &&
pip install pytest numpy &&
pip install --no-index --find-links pypylon-wheel-source pypylon &&
pytest tests/genicam_tests tests/pylon_tests/emulated
"
- name: Run pypylon unit tests for Python ${{ matrix.python-version }}
if: runner.os == 'macOS'
run: |
python -m pip install --upgrade pip
pip install pytest numpy
pip install --no-index --find-links pypylon-wheel-source pypylon
pytest tests/genicam_tests tests/pylon_tests/emulated
- name: Run pypylon unit tests for Python ${{ matrix.python-version }}
if: runner.os != 'macOS'
run: |
python -m pip install --upgrade pip
pip install pytest numpy
pip install --no-index --find-links pypylon-wheel-source pypylon
pytest tests/genicam_tests tests/pylon_tests/emulated tests/pylondataprocessing_tests

0 comments on commit 2bcf313

Please sign in to comment.