Skip to content

Commit

Permalink
Add unit tests pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoernrennfanz committed Dec 3, 2024
1 parent 6e0fff3 commit 7a2c5b9
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -272,4 +272,41 @@ jobs:
Windows_Pylon
macOS_Pylon
unit-tests:
if: success()
needs: [
setup,
build-linux,
build-macos,
build-windows
]
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
python-version: [ '3.10', '3.11', '3.12', '3.13' ]
architecture: [ x64, arm64 ]
exclude:
# Exclude ARM64 architecture for Windows
- os: windows-latest
architecture: arm64
runs-on: ${{ matrix.os }}
steps:
- name: Set up runner architecture
if: runner.os == 'Linux' && matrix.architecture == 'arm64'
run: |
if [[ "$(uname -m)" != "${{ matrix.architecture }}" ]]; then
sudo apt-get update
sudo apt-get install -y qemu-user-static
echo ":$(( $(cat /proc/sys/fs/binfmt_misc/status | grep -o enabled) | wc -l ))" | sudo tee /proc/sys/fs/binfmt_misc/qemu-aarch64
sudo service binfmt-support restart
fi
- name: Check out repository
uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}

Empty file.

0 comments on commit 7a2c5b9

Please sign in to comment.