-
-
Notifications
You must be signed in to change notification settings - Fork 10
54 lines (44 loc) · 1.3 KB
/
matrix_factorizations.yml
File metadata and controls
54 lines (44 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: CI-matrix-factorizations
on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]
jobs:
matrix-factorizations-tests:
name: Test Matrix Factorizations
runs-on: ubuntu-latest
permissions:
contents: read
continue-on-error: true # Allow this job to fail without blocking PR/merge
strategy:
matrix:
ghc: ['9.8.2']
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Setup Haskell
uses: haskell-actions/setup@v2
with:
ghc-version: ${{ matrix.ghc }}
enable-stack: true
stack-version: 'latest'
- name: Cache Stack dependencies
uses: actions/cache@v4
with:
path: |
~/.stack
.stack-work
key: ${{ runner.os }}-stack-${{ matrix.ghc }}-${{ hashFiles('stack.yaml', 'sparse-linear-algebra.cabal') }}
restore-keys: |
${{ runner.os }}-stack-${{ matrix.ghc }}-
${{ runner.os }}-stack-
- name: Install dependencies
run: |
stack build --only-dependencies --test --no-terminal
- name: Build
run: |
stack build --test --no-terminal --no-run-tests
- name: Run matrix factorizations test suite
run: |
stack test sparse-linear-algebra:matrix-factorizations --no-terminal