-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (40 loc) · 1.06 KB
/
run_tox.yml
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
53
54
# This workflow installs Maud on Ubuntu with Python 3.7 and then runs tox
name: Install Maud and run tox
on:
push:
branches:
- 'main'
tags:
- '**'
pull_request:
workflow_dispatch: {}
env:
CMDSTAN_VERSION: "2.33.1"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install build dependencies
run: |
python -m pip install --upgrade pip wheel
pip install cmdstanpy
- name: CmdStan installation cacheing
uses: actions/cache@v2
with:
path: ~/.cmdstan
key: ${{ runner.os }}-cmdstan-${{ env.CMDSTAN_VERSION }}
- name: Install cmdstan
run: python -m cmdstanpy.install_cmdstan --version "${{ env.CMDSTAN_VERSION }}" --cores 2
- name: Install Maud
run: pip install .[development]
- name: Run tox
run: tox