Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
ci: fix stan
Browse files Browse the repository at this point in the history
  • Loading branch information
storopoli committed Dec 3, 2023
1 parent 89f318c commit ea8c761
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/models.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,16 @@ jobs:
- name: Cache Nix artifacts
uses: DeterminateSystems/magic-nix-cache-action@v2

- name: Test ${{ matrix.stan.file }}
- name: Test ${{ matrix.stan.model }}
if: $${ matrix.stan.data }}
run: |
echo "Compiling: ${{ matrix.stan.file }}"
echo "Compiling: ${{ matrix.stan.model }}"
nix develop -L . --command bash -c "stan stan/${{ matrix.stan.model }}"
nix develop -L . --command bash -c "stan/${{ matrix.stan.model }} sample data file=stan/${{ matrix.stan.data }} "
nix develop -L . --command bash -c "stan/${{ matrix.stan.model }} sample data file=stan/${{ matrix.stan.data }}"
- name: Test ${{ matrix.stan.model }}
if: $${ !matrix.stan.data }}
run: |
echo "Compiling: ${{ matrix.stan.model }}"
nix develop -L . --command bash -c "stan stan/${{ matrix.stan.model }}"
nix develop -L . --command bash -c "stan/${{ matrix.stan.model }} sample "

0 comments on commit ea8c761

Please sign in to comment.