TestBinaryInstall #9
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: TestBinaryInstall | |
on: workflow_dispatch | |
jobs: | |
test_binary_install: | |
name: Test binary install on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest] | |
python-version: [3.8, 3.9, 3.10, 3.11, 3.12] | |
# strategy: | |
# matrix: | |
# #os: [ubuntu-latest] | |
# # manylinux wheel had problem with absolute path to alsa system, so better to build from source which always works | |
# os: [windows-latest, macos-13, macos-14] | |
# # macos-13: macos intel | |
# # macos-14: macos M1 Note: macos-latest=macos-14 | |
# # see https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories | |
steps: | |
# - uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: test binary install | |
shell: bash | |
run: | | |
name="log-${{ matrix.os }}-py${{ matrix.python-version }}" | |
pip install '--only-binary=:all:' --no-cache-dir 'ev3dev2simulator==2.0.10' >& $name.txt || mv $name.txt $name.exit$?.txt | |
- name: Upload wheel artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: log-${{ matrix.os }}-py${{ matrix.python-version }} | |
path: log-${{ matrix.os }}-py${{ matrix.python-version }}*.txt | |
upload: | |
runs-on: ubuntu-latest | |
needs: test_binary_install | |
steps: | |
- name: Download All Artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
pattern: log-* | |
path: logs/ | |
merge-multiple: true | |
- name: Upload logs in single artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: logs | |
path: logs/*.txt | |
- uses: geekyeggo/delete-artifact@v5 | |
with: | |
name: log-* | |