Skip to content

Commit

Permalink
Merge pull request #2 from eth-vaw-glaciology/m3/simpler-ci-yml
Browse files Browse the repository at this point in the history
simpler CI yml
  • Loading branch information
mauro3 authored Oct 31, 2023
2 parents 6766ee6 + 982acbe commit bf67990
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -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()'

0 comments on commit bf67990

Please sign in to comment.