From 4a6fee821221b367d031f90e9295505eca5b14bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Wed, 8 Oct 2025 20:38:28 +0100 Subject: [PATCH 1/2] [CI] Reorganise GitHub Actions setup * move directory to the right name * remove reference to `master` branch * add `paths` triggers * add concurrency groups * update `actions/checkout` workflow to latest version --- .github/actions/CI.yml | 35 ------------------- .github/workflows/UnitTests.yml | 59 +++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+), 35 deletions(-) delete mode 100644 .github/actions/CI.yml create mode 100644 .github/workflows/UnitTests.yml diff --git a/.github/actions/CI.yml b/.github/actions/CI.yml deleted file mode 100644 index 042afbf..0000000 --- a/.github/actions/CI.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Run tests - -on: - push: - branches: - - master - - main - pull_request: - -# needed to allow julia-actions/cache to delete old caches that it has created -permissions: - actions: write - contents: read - -jobs: - test: - runs-on: ${{ matrix.os }} - strategy: - matrix: - julia-version: ['lts', '1', 'pre'] - julia-arch: [x64, x86] - os: [ubuntu-latest, windows-latest, macOS-latest] - exclude: - - os: macOS-latest - julia-arch: x86 - - steps: - - uses: actions/checkout@v4 - - uses: julia-actions/setup-julia@v2 - with: - version: ${{ matrix.julia-version }} - arch: ${{ matrix.julia-arch }} - - uses: julia-actions/cache@v2 - - uses: julia-actions/julia-buildpkg@v1 - - uses: julia-actions/julia-runtest@v1 diff --git a/.github/workflows/UnitTests.yml b/.github/workflows/UnitTests.yml new file mode 100644 index 0000000..8a82bb7 --- /dev/null +++ b/.github/workflows/UnitTests.yml @@ -0,0 +1,59 @@ +name: Run tests + +on: + push: + branches: + - main + paths: + - '.github/workflows/UnitTests.yml' + - 'ext/**' + - 'src/**' + - 'test/**' + - 'Project.toml' + pull_request: + paths: + - '.github/workflows/UnitTests.yml' + - 'ext/**' + - 'src/**' + - 'test/**' + - 'Project.toml' + +# needed to allow julia-actions/cache to delete old caches that it has created +permissions: + actions: write + contents: read + +concurrency: + # Skip intermediate builds: always. + # Cancel intermediate builds: always. + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + julia-version: + - 'min' + - '1' + - 'pre' + julia-arch: + - x64 + - x86 + os: + - ubuntu-latest + - windows-latest + - macOS-latest + exclude: + - os: macOS-latest + julia-arch: x86 + + steps: + - uses: actions/checkout@v5 + - uses: julia-actions/setup-julia@v2 + with: + version: ${{ matrix.julia-version }} + arch: ${{ matrix.julia-arch }} + - uses: julia-actions/cache@v2 + - uses: julia-actions/julia-runtest@v1 From 0daa22037f432ee58c6ed6628d23eba4f13bb207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Wed, 8 Oct 2025 20:39:45 +0100 Subject: [PATCH 2/2] [CI] Install dependabot --- .github/dependabot.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..700707c --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" # Location of package manifests + schedule: + interval: "weekly"