-
Notifications
You must be signed in to change notification settings - Fork 23
42 lines (38 loc) · 1.69 KB
/
pip_installation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# 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, macos-13, windows-latest]
# macOS-latest and macos-latest-xlarge use Arm64, resulting in MPS OOM error in peptdeep
# 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, macos-13, 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"