From 03dcdd2b1f6fa5b9f1599ae899d30ee8a42b61b8 Mon Sep 17 00:00:00 2001 From: Remi Gau Date: Wed, 8 May 2024 09:39:33 -0400 Subject: [PATCH] run macOS separately --- .github/workflows/codespell.yml | 20 -------- .../workflows/matlab_test_and_coverage.yml | 9 ++-- .github/workflows/miss_hit.yml | 46 ------------------- .../workflows/octave_test_and_coverage.yml | 2 +- 4 files changed, 7 insertions(+), 70 deletions(-) delete mode 100644 .github/workflows/codespell.yml delete mode 100644 .github/workflows/miss_hit.yml diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml deleted file mode 100644 index 7ffa02e..0000000 --- a/.github/workflows/codespell.yml +++ /dev/null @@ -1,20 +0,0 @@ ---- -name: codespell - -on: - push: - branches: [main] - pull_request: - branches: [main] - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - # Check for common misspellings - codespell: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: codespell-project/actions-codespell@master diff --git a/.github/workflows/matlab_test_and_coverage.yml b/.github/workflows/matlab_test_and_coverage.yml index ef8c50c..7082fa8 100644 --- a/.github/workflows/matlab_test_and_coverage.yml +++ b/.github/workflows/matlab_test_and_coverage.yml @@ -12,7 +12,7 @@ name: 'MATLAB: test and coverage' on: push: - branches: [master, main, dev] + branches: [main] pull_request: branches: ['*'] @@ -21,8 +21,11 @@ jobs: strategy: matrix: - version: [R2021a, R2021b, R2022a, R2022b, R2023a] - os: [ubuntu-latest, macos-latest, windows-latest] + os: [ubuntu-latest, windows-latest] + version: [R2021a, R2023b] + include: + - os: macos-latest + version: R2023b fail-fast: false # Don't cancel all jobs if one fails runs-on: ${{ matrix.os }} diff --git a/.github/workflows/miss_hit.yml b/.github/workflows/miss_hit.yml deleted file mode 100644 index 26cf78f..0000000 --- a/.github/workflows/miss_hit.yml +++ /dev/null @@ -1,46 +0,0 @@ ---- -name: miss_hit - -on: - push: - branches: - - main - - dev - paths: - - '**.m' - - .github/workflows/miss_hit.yml - pull_request: - branches: ['*'] - paths: - - '**.m' - - .github/workflows/miss_hit.yml -jobs: - - miss_hit: - - runs-on: ubuntu-latest - - strategy: - matrix: - command: [mh_style, mh_metric --ci && mh_lint] - fail-fast: true # cancel all jobs if one fails - - steps: - - - uses: actions/checkout@v4 - with: - fetch-depth: 1 - - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: '3.11' - - - name: Install dependencies - run: | - python -m pip install --upgrade pip setuptools - pip3 install -r requirements.txt - - - name: ${{ matrix.command }} - run: | - ${{ matrix.command }} diff --git a/.github/workflows/octave_test_and_coverage.yml b/.github/workflows/octave_test_and_coverage.yml index b604bff..0cd5728 100644 --- a/.github/workflows/octave_test_and_coverage.yml +++ b/.github/workflows/octave_test_and_coverage.yml @@ -3,7 +3,7 @@ name: 'Octave: test and coverage' on: push: - branches: [master, main, dev] + branches: [main] pull_request: branches: ['*']