-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (36 loc) · 1.45 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
# 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:
# macos-latest is now arm64, which cannot install mono
os: [ubuntu-latest, macos-13, windows-latest]
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 }}
strategy:
matrix:
# macos-latest is now arm64, which cannot install mono
os: [ubuntu-latest, macos-13, windows-latest]
uses: ./.github/workflows/_run_tests.yml
with:
os: ${{ matrix.os }}
python-version: ${{ matrix.python-version }}
install-script: "loose_pip_install.sh"