-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MAINT] try not indexing dependencies for a speed up (#1129)
* try not indexing dependencies for a speed up * fix * speed up layout indexing during tests * fix concatenation * separate slow tests * fewer subjects in bms * update flags coverage * fix octave bug
- Loading branch information
Showing
43 changed files
with
434 additions
and
54 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,16 +43,27 @@ jobs: | |
os: [ubuntu-latest, macos-latest] | ||
matlab: [R2022b] | ||
include: | ||
# only run bms on ubuntu because of datalad setup | ||
- test_type: system | ||
os: ubuntu-latest | ||
matlab: R2022b | ||
script: bms | ||
- test_type: unit | ||
os: ubuntu-latest | ||
matlab: R2022b | ||
mode: fast | ||
- test_type: unit | ||
os: macos-latest | ||
matlab: R2022b | ||
mode: fast | ||
- test_type: unit | ||
os: ubuntu-latest | ||
matlab: R2022b | ||
mode: slow | ||
- test_type: unit | ||
os: macos-latest | ||
matlab: R2022b | ||
mode: slow | ||
fail-fast: false | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
@@ -124,18 +135,24 @@ jobs: | |
with: | ||
release: ${{ matrix.matlab }} | ||
|
||
- name: Run unit tests MATLAB | ||
if: matrix.test_type == 'unit' | ||
- name: Run fast unit tests MATLAB | ||
if: matrix.test_type == 'unit' && matrix.mode == 'fast' | ||
uses: matlab-actions/[email protected] | ||
with: | ||
command: cd(fullfile(getenv('GITHUB_WORKSPACE'), '.github', 'workflows')); run tests_matlab; | ||
|
||
- name: Run slow unit tests MATLAB | ||
if: matrix.test_type == 'unit' && matrix.mode == 'slow' | ||
uses: matlab-actions/[email protected] | ||
with: | ||
command: cd(fullfile(getenv('GITHUB_WORKSPACE'), '.github', 'workflows')); global SLOW; SLOW=true; run tests_matlab; | ||
|
||
- name: Code coverage matlab | ||
if: matrix.test_type == 'unit' | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
file: coverage.xml | ||
flags: ${{ matrix.os }}_matlab-${{ matrix.matlab }} | ||
flags: ${{ matrix.os }}_matlab-${{ matrix.matlab }}_${{ matrix.mode }} | ||
name: codecov-matlab | ||
fail_ci_if_error: false | ||
# token: ${{ secrets.CODECOV_TOKEN }} # not required but might help API rate limits | ||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,11 @@ jobs: | |
- test_type: unit | ||
os: windows-latest | ||
matlab: R2022b | ||
mode: fast | ||
- test_type: unit | ||
os: windows-latest | ||
matlab: R2022b | ||
mode: slow | ||
fail-fast: false | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
@@ -109,18 +114,24 @@ jobs: | |
with: | ||
release: ${{ matrix.matlab }} | ||
|
||
- name: Run unit tests MATLAB | ||
if: matrix.test_type == 'unit' | ||
- name: Run fast unit tests MATLAB | ||
if: matrix.test_type == 'unit' && matrix.mode == 'fast' | ||
uses: matlab-actions/[email protected] | ||
with: | ||
command: cd(fullfile(getenv('GITHUB_WORKSPACE'), '.github', 'workflows')); run tests_matlab; | ||
|
||
- name: Run slow unit tests MATLAB | ||
if: matrix.test_type == 'unit' && matrix.mode == 'slow' | ||
uses: matlab-actions/[email protected] | ||
with: | ||
command: cd(fullfile(getenv('GITHUB_WORKSPACE'), '.github', 'workflows')); global SLOW; SLOW=true; run tests_matlab; | ||
|
||
- name: Code coverage matlab | ||
if: matrix.test_type == 'unit' | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
file: coverage.xml | ||
flags: ${{ matrix.os }}_matlab-${{ matrix.matlab }} | ||
flags: ${{ matrix.os }}_matlab-${{ matrix.matlab }}_${{ matrix.mode }} | ||
name: codecov-matlab | ||
fail_ci_if_error: false | ||
# token: ${{ secrets.CODECOV_TOKEN }} # not required but might help API rate limits | ||
|
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
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
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Slow tests folders | ||
|
||
Move files in this folder if they are too slow. | ||
|
||
Add the following at the beginning of each test. | ||
|
||
```matlab | ||
if ~usingSlowTestMode() | ||
moxunit_throw_test_skipped_exception('slow test only'); | ||
end | ||
``` |
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
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
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
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
Oops, something went wrong.