numpy<2 to prevent numpy not available error #303
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
# Perform pip installation and run all tests | |
# For feature branches, we don't test the full matrix (os x [stable, loose]) in order to save time & resources. | |
# On each push to develop, the whole test matrix runs, additionally, its success is mandatory for merging to main. | |
# In the (assumed to be rare case) that these full matrix tests fail but the reduced matrix tests passed, | |
# we will learn about it latest before pushing to main. The merge that caused the issue can then be identified | |
# from the tests that ran on develop. | |
on: | |
push: | |
branches: [ main, development ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
name: Pip installation and tests | |
jobs: | |
stable_installation: | |
name: Test stable pip installation on ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
# macOS-latest and macos-latest-xlarge use Arm64, resulting in MPS OOM error in peptdeep | |
# macos-13 does not have OOM, but it cannot install latest torch package with "numpy not available" error. | |
# os: [ubuntu-latest, macos-13, macos-latest, windows-latest, macos-latest-xlarge] | |
uses: ./.github/workflows/_run_tests.yml | |
with: | |
os: ${{ matrix.os }} | |
python-version: ${{ matrix.python-version }} | |
install-script: "stable_pip_install.sh" | |
loose_installation: | |
name: Test loose pip installation on ${{ matrix.os }} | |
# runs-on: ${{ matrix.os }} # See https://github.com/orgs/community/discussions/62320 | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
# os: [ubuntu-latest, macos-13, macos-latest, windows-latest, macos-latest-xlarge] | |
uses: ./.github/workflows/_run_tests.yml | |
with: | |
os: ${{ matrix.os }} | |
python-version: ${{ matrix.python-version }} | |
install-script: "loose_pip_install.sh" |