@@ -3,12 +3,12 @@ name: tests
3
3
on :
4
4
push :
5
5
branches-ignore :
6
- - ' v*'
6
+ - ' v*'
7
7
pull_request :
8
8
9
9
jobs :
10
10
build :
11
- if : github.repository == 'SCECCode /pycsep'
11
+ if : github.repository == 'SCECcode /pycsep'
12
12
runs-on : ${{ matrix.os }}
13
13
strategy :
14
14
fail-fast : false
@@ -20,30 +20,25 @@ jobs:
20
20
shell : bash -l {0}
21
21
22
22
steps :
23
- - uses : actions/checkout@v2
24
- - uses : conda-incubator/setup-miniconda@v2
25
- with :
26
- python-version : ${{ matrix.python-version }}
27
- activate-environment : csep-dev
28
- channels : conda-forge
23
+ - uses : actions/checkout@v2
24
+ - uses : mamba-org/setup-micromamba@v1
25
+ with :
26
+ generate-run-shell : true
27
+ environment-file : requirements.yml
28
+ create-args : >-
29
+ python=${{ matrix.python-version }}
29
30
30
- - name : Install dependencies
31
- run : |
32
- conda env update --file requirements.yml
33
- conda info -a
34
- conda list
31
+ - name : Install pyCSEP
32
+ run : |
33
+ pip install --no-deps -e .
34
+ python -c "import csep; print('Version: ', csep.__version__)"
35
35
36
- - name : Install pyCSEP
37
- run : |
38
- pip install --no-deps -e .
39
- python -c "import csep; print('Version: ', csep.__version__)"
36
+ - name : Test with pytest
37
+ run : |
38
+ pip install vcrpy==4.3.1 pytest pytest-cov
39
+ pytest --cov=./ --cov-config=.coveragerc
40
40
41
- - name : Test with pytest
42
- run : |
43
- conda install pytest-cov
44
- pytest --cov=./ --cov-config=.coveragerc
45
-
46
- - name : Upload coverage
47
- if : matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10'
48
- run : |
49
- bash <(curl -s https://codecov.io/bash) || echo 'Codecov failed to upload'
41
+ - name : Upload coverage
42
+ if : matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10'
43
+ run : |
44
+ bash <(curl -s https://codecov.io/bash) || echo 'Codecov failed to upload'
0 commit comments