Merge pull request #382 from MannLabs/transfer-lib-bug #772
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 (stable, loose) and run tests on all three OS | |
# 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: Perform pip installation and run unit tests | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: false | |
jobs: | |
run-unit-tests-stable: | |
name: Test stable pip installation on 3 OS | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-13, windows-latest] | |
python-version: ["3.10", "3.11", "3.12"] | |
uses: ./.github/workflows/_run_tests.yml | |
with: | |
python-version: ${{ matrix.python-version }} | |
os: ${{ matrix.os }} | |
install-script: ./pip_install.sh stable,test | |
test-script: ./run_unit_tests.sh | |
run-unit-tests-loose: | |
name: Test loose pip installation on 3 OS | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, macos-13, windows-latest ] | |
python-version: ["3.10", "3.11", "3.12"] | |
uses: ./.github/workflows/_run_tests.yml | |
with: | |
python-version: ${{ matrix.python-version }} | |
os: ${{ matrix.os }} | |
install-script: ./pip_install.sh test | |
test-script: ./run_unit_tests.sh |