Skip to content

Commit e1ab421

Browse files
committed
make prettier, upload codecov
1 parent df50024 commit e1ab421

File tree

1 file changed

+25
-20
lines changed

1 file changed

+25
-20
lines changed

.github/workflows/pytest.yml

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -57,23 +57,28 @@ jobs:
5757
run:
5858
shell: bash -l {0}
5959
steps:
60-
- uses: actions/checkout@v2
61-
- name: Cache conda
62-
uses: actions/cache@v1
63-
env:
64-
# Increase this value to reset cache if environment-dev.yml has not changed
65-
CACHE_NUMBER: 0
66-
with:
67-
path: ~/conda_pkgs_dir
68-
key:
69-
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
70-
hashFiles('environment-dev.yml') }}
71-
- uses: conda-incubator/setup-miniconda@v2
72-
with:
73-
activate-environment: testenv
74-
channel-priority: strict
75-
environment-file: environment-dev.yml
76-
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
77-
- run: |
78-
conda activate testenv
79-
python -m pytest -v --cov=pymc3 --cov-report=xml --cov-report term --durations=50 $TEST_SUBSET
60+
- uses: actions/checkout@v2
61+
- name: Cache conda
62+
uses: actions/cache@v1
63+
env:
64+
# Increase this value to reset cache if environment-dev.yml has not changed
65+
CACHE_NUMBER: 0
66+
with:
67+
path: ~/conda_pkgs_dir
68+
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
69+
hashFiles('environment-dev.yml') }}
70+
- uses: conda-incubator/setup-miniconda@v2
71+
with:
72+
activate-environment: testenv
73+
channel-priority: strict
74+
environment-file: environment-dev.yml
75+
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
76+
- run: |
77+
conda activate testenv
78+
python -m pytest -v --cov=pymc3 --cov-report=xml --cov-report term --durations=50 $TEST_SUBSET
79+
- name: Upload coverage to Codecov
80+
uses: codecov/codecov-action@v1
81+
with:
82+
env_vars: OS,PYTHON
83+
name: codecov-umbrella
84+
fail_ci_if_error: false

0 commit comments

Comments
 (0)