File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change 1
- name : Python Package using Conda
1
+ name : Python Package using conda environment
2
2
3
3
on :
4
4
push :
17
17
18
18
steps :
19
19
- uses : actions/checkout@v3
20
- # - name: Set up Python 3.10
21
- # uses: actions/setup-python@v3
22
- # with:
23
- # python-version: '3.10'
24
20
- name : Add conda
25
21
uses : conda-incubator/setup-miniconda@v3
26
22
with :
27
- # auto-update-conda: true
28
23
activate-environment : mbarq
29
24
environment-file : mbarq_environment.yaml
30
25
python-version : ' 3.10'
@@ -33,24 +28,17 @@ jobs:
33
28
run : |
34
29
conda info
35
30
conda list
36
- # run: |
37
- # # $CONDA is an environment variable pointing to the root of the miniconda directory
38
- # echo $CONDA/bin >> $GITHUB_PATH
39
- - name : Install dependencies
31
+ - name : Install mbarq
40
32
run : |
41
- #conda install -c conda-forge mamba python==3.10
42
- #conda env update --file mbarq_environment.yaml --name base
43
33
pip install .
44
34
- name : Lint with flake8
45
35
run : |
46
- #conda activate mbarq
47
36
conda install flake8
48
37
# stop the build if there are Python syntax errors or undefined names
49
38
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
50
39
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
51
40
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
52
41
- name : Test with pytest
53
42
run : |
54
- conda activate mbarq
55
43
conda install pytest
56
44
pytest
You can’t perform that action at this time.
0 commit comments