File tree Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : TestingInConda
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - ' main'
7
+
8
+ jobs :
9
+ setup-build :
10
+ name : Ex1 (${{ matrix.python-version }}, ${{ matrix.os }})
11
+ runs-on : ${{ matrix.os }}
12
+ strategy :
13
+ fail-fast : false
14
+ matrix :
15
+ os : ["ubuntu-latest"]
16
+ python-version : ["3.10"]
17
+
18
+ steps :
19
+ - uses : actions/checkout@v3
20
+ - name : Setup Conda
21
+ uses : s-weigand/setup-conda@v1
22
+ with :
23
+ update-conda : false
24
+ conda-channels : conda-forge
25
+ python-version : ${{ matrix.python-version }}
26
+
27
+ - name : Install Packages
28
+ shell : bash
29
+ run : |
30
+ python --version
31
+ conda create -n mtpy-v2-test python=--version
32
+ source activate mtpy-v2-test
33
+ pip install mtpy-v2
34
+ conda install pytest
35
+ conda install pytest-subtests
36
+ conda install pytest-cov
37
+ git clone https://github.com/kujaku11/mt_metadata.git
38
+ git clone install git+https://github.com/kujaku11/mth5.git
39
+ git clone git+https://github.com/simpeg/aurora
40
+ git clone https://github.com/MTgeophysics/mtpy_data.git
41
+ cd mtpy_data
42
+ pip install -e .
43
+ cd ..
44
+ conda list
45
+
46
+ - name : Run Tests
47
+ shell : bash
48
+ run : |
49
+ source activate mtpy-v2-test
50
+ pytest -rA --cov=./ --cov-report=xml --cov=mtpy
51
+
52
+ - name : " Upload coverage to Codecov"
53
+ uses : codecov/codecov-action@v3
54
+ env :
55
+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
56
+ with :
57
+ fail_ci_if_error : false
58
+ verbose : true
59
+ flags : tests
60
+
You can’t perform that action at this time.
0 commit comments