13
13
steps :
14
14
- uses : actions/checkout@v2
15
15
- uses : actions/setup-python@v2
16
+ with :
17
+ python-version : 3.9
16
18
- uses : pre-commit/action@v2.0.0
17
19
18
20
test :
@@ -24,44 +26,22 @@ jobs:
24
26
matrix :
25
27
python-version : [ '3.7', '3.10']
26
28
steps :
27
- - uses : actions/checkout@v1
28
- - name : Set up Python ${{ matrix.python-version }}
29
- uses : actions/setup-python@v1
30
- with :
31
- python-version : ${{ matrix.python-version }}
32
- - name : Install dev environment & blackjax
33
- run : |
34
- python -m pip install --upgrade pip
35
- pip install .
36
- less requirements.txt | grep 'pytest\|chex' | xargs -i -t pip install {}
37
- - name : Run the tests with pytest
38
- run : |
39
- pytest -n 4 -vv -m "not benchmark" --cov=blackjax --cov-report=xml --cov-report=term tests
40
- - name : Upload coverage to Codecov
41
- uses : codecov/codecov-action@v1
42
- with :
43
- env_vars : OS,PYTHON
44
- name : codecov-umbrella
45
- fail_ci_if_error : false
46
-
47
- benchmark :
48
- name : Run benchmarks
49
- needs : [test]
50
- runs-on : ubuntu-latest
51
- strategy :
52
- matrix :
53
- python-version : [ '3.10' ]
54
- steps :
55
- - uses : actions/checkout@v1
56
- - name : Set up Python ${{ matrix.python-version }}
57
- uses : actions/setup-python@v1
58
- with :
59
- python-version : ${{ matrix.python-version }}
60
- - name : Install dev environment & blackjax
61
- run : |
62
- python -m pip install --upgrade pip
63
- pip install .
64
- less requirements.txt | grep 'pytest\|chex' | xargs -i -t pip install {}
65
- - name : Run the benchmarks with pytest-benchmark
66
- run : |
67
- pytest -n 4 -vv -m benchmark --cov=blackjax --cov-report=xml --cov-report=term tests
29
+ - uses : actions/checkout@v1
30
+ - name : Set up Python ${{ matrix.python-version }}
31
+ uses : actions/setup-python@v1
32
+ with :
33
+ python-version : ${{ matrix.python-version }}
34
+ - name : Set up test environment
35
+ run : |
36
+ python -m pip install --upgrade pip
37
+ pip install .
38
+ less requirements.txt | grep 'pytest\|chex' | xargs -i -t pip install {}
39
+ - name : Run tests
40
+ run : |
41
+ pytest -n auto -vv -m "not benchmark" --cov=blackjax --cov-report=xml --cov-report=term tests
42
+ - name : Upload coverage to Codecov
43
+ uses : codecov/codecov-action@v1
44
+ with :
45
+ env_vars : OS,PYTHON
46
+ name : codecov-umbrella
47
+ fail_ci_if_error : false
0 commit comments