Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/badges/v0.7.9/tested_with.json

This file was deleted.

148 changes: 0 additions & 148 deletions .github/workflows/create_release.yml

This file was deleted.

21 changes: 5 additions & 16 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,14 @@ on:
type: string

jobs:
reuse-workflow-release:
prepare-release:
name: Prepare toolbox release
uses: ehennestad/matbox/.github/workflows/reusable_release_workflow.yml@make-release-workflow-reusable
uses: ehennestad/matbox-actions/.github/workflows/prepare-release-workflow.yml@v1
with:
# Do not change
version: ${{ inputs.version }}

# Do not change
ref_name: ${{ github.ref_name }}

# Path to directory containing source code. This directory will be packaged
# into the toolbox. Important: This should not be a namespace directory
code_directory: code

# Path to directory containing tools and MLToolboxInfo.json. Used for finding
# unit tests, running customized MatBox tasks, and determining toolbox metadata
tools_directory: tools

version: ${{ inputs.version }} # Do not change
ref_name: ${{ github.ref_name }} # Do not change
matlab_products: Statistics_and_Machine_Learning_Toolbox
source_directory: src

secrets:
# SSH deploy key for pushing to protected branches. Required for creating
Expand Down
32 changes: 0 additions & 32 deletions .github/workflows/run_tests.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/test-code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test code

on:
push:
branches: main
paths-ignore:
- '*.md'
- '.github/**'

pull_request:
branches: main
paths-ignore:
- '*.md'
- '.github/**'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test-code:
name: Analyse and test code
uses: ehennestad/matbox-actions/.github/workflows/test-code-workflow.yml@v1
with:
matlab_release: R2021b
matlab_use_cache: true
matlab_products: Statistics_and_Machine_Learning_Toolbox
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion did_Init.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
rmpath(pathstoremove);

% Add the code subdirectory to MATLAB's search path
pathstoadd = addpath(genpath(fullfile(mydidpath, 'code')));
pathstoadd = addpath(genpath(fullfile(mydidpath, 'src', 'did')));
1 change: 0 additions & 1 deletion docs/reports/badge/code_issues.json

This file was deleted.

1 change: 0 additions & 1 deletion docs/reports/badge/tests.json

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 0 additions & 9 deletions tools/tasks/packageToolbox.m

This file was deleted.

7 changes: 6 additions & 1 deletion tools/tasks/testToolbox.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
function testToolbox(varargin)
projectRootDirectory = didtools.projectdir();
matbox.installRequirements(projectRootDirectory)
matbox.tasks.testToolbox(projectRootDirectory, "CreateBadge", false, varargin{:})
matbox.tasks.testToolbox(projectRootDirectory, ...
varargin{:}, ...
"SourceFolderName", 'src', ...
"TestsFolderName", 'tests', ...
"CreateBadge", false ...
)
end
Loading