From 982acbe668bf8b64172f49991236dab7c015c247 Mon Sep 17 00:00:00 2001 From: Mauro Werder Date: Tue, 31 Oct 2023 15:16:34 +0100 Subject: [PATCH] simpler CI yml --- .github/workflows/CI.yml | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index e658d87..2e9d063 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -1,32 +1,24 @@ -name: CI -on: - [push, pull_request] +name: Run tests + + +on: [push, pull_request] + jobs: test: - name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - ${{ matrix.julia-arch }} - ${{ github.event_name }} runs-on: ${{ matrix.os }} strategy: - fail-fast: false matrix: julia-version: ['1.9'] julia-arch: [x64] os: [ubuntu-latest] + steps: - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@v1 with: version: ${{ matrix.julia-version }} arch: ${{ matrix.julia-arch }} - - 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/cache@v1 - uses: julia-actions/julia-buildpkg@latest - run: julia --color=yes -e 'cd("subfolder"); import Pkg; Pkg.activate("."); Pkg.test()'