forked from mjhajharia/transforms
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 951 Bytes
/
ci.yaml
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
name: CI
on: [push]
env:
CMDSTAN_VERSION: "2.35.0"
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v4
- name: Cache CmdStan
id: cache-cmdstan
uses: actions/cache@v4
with:
path: "~/.cmdstan"
key: cmdstan-${{ env.CMDSTAN_VERSION }}-${{ runner.os }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .[test]
- name: Install CmdStan
run: |
import cmdstanpy
cmdstanpy.install_cmdstan(version="${{ env.CMDSTAN_VERSION }}")
shell: python
- name: Test with pytest
run: python -m pytest