From 56dd3bc14b3d30b0a92f5afb75ecef4e3d76a38e Mon Sep 17 00:00:00 2001 From: JuliusMartensen Date: Wed, 29 Nov 2023 15:55:11 +0100 Subject: [PATCH 1/4] Create test.yml --- .github/workflows/test.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..4bcbc4d --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,31 @@ +name: Run tests + +on: + push: + branches: + - master + - main + pull_request: + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + julia-version: ['1.0', '1', 'nightly'] + julia-arch: [x64, x86] + os: [ubuntu-latest, windows-latest, macOS-latest] + exclude: + - os: macOS-latest + julia-arch: x86 + + steps: + - uses: actions/checkout@v2 + - uses: julia-actions/setup-julia@v1 + with: + version: ${{ matrix.julia-version }} + arch: ${{ matrix.julia-arch }} + - uses: julia-actions/julia-buildpkg@v1 + - uses: julia-actions/julia-runtest@v1 + # with: + # annotate: true From 56027b0d34167f8302a90ad99a64d363f496b7c9 Mon Sep 17 00:00:00 2001 From: JuliusMartensen Date: Wed, 29 Nov 2023 15:58:31 +0100 Subject: [PATCH 2/4] Update test.yml To LTS --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4bcbc4d..0b21e1c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - julia-version: ['1.0', '1', 'nightly'] + julia-version: ['1.6', 'nightly'] julia-arch: [x64, x86] os: [ubuntu-latest, windows-latest, macOS-latest] exclude: From 58e81090061e96297c78d159218bbbde7a8a5b5f Mon Sep 17 00:00:00 2001 From: JuliusMartensen Date: Wed, 29 Nov 2023 19:14:34 +0100 Subject: [PATCH 3/4] Update test.yml --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0b21e1c..2b96764 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - julia-version: ['1.6', 'nightly'] + julia-version: ['1.9'] julia-arch: [x64, x86] os: [ubuntu-latest, windows-latest, macOS-latest] exclude: From a39d7a4cf1570c7400c647a61d003f337a060e4c Mon Sep 17 00:00:00 2001 From: JuliusMartensen Date: Thu, 30 Nov 2023 06:51:24 +0100 Subject: [PATCH 4/4] Try to fix tests --- .github/workflows/test.yml | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2b96764..e3a6793 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,31 +1,38 @@ -name: Run tests +name: CI on: push: branches: - - master - main + paths-ignore: + - 'docs/**' pull_request: + branches: + - main + paths-ignore: + - 'docs/**' jobs: test: - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest strategy: matrix: - julia-version: ['1.9'] - julia-arch: [x64, x86] - os: [ubuntu-latest, windows-latest, macOS-latest] - exclude: - - os: macOS-latest - julia-arch: x86 + version: ['1'] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@v1 with: - version: ${{ matrix.julia-version }} - arch: ${{ matrix.julia-arch }} + version: ${{ matrix.version }} + - uses: actions/cache@v3 + env: + cache-name: cache-artifacts + with: + path: ~/.julia/artifacts + key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} + restore-keys: | + ${{ runner.os }}-test-${{ env.cache-name }}- + ${{ runner.os }}-test- + ${{ runner.os }}- - uses: julia-actions/julia-buildpkg@v1 - - uses: julia-actions/julia-runtest@v1 - # with: - # annotate: true + - uses: julia-actions/julia-runtest@v1 \ No newline at end of file