@@ -42,11 +42,13 @@ jobs:
42
42
rm -rf /home/user/.bash_profile /home/user/.conda /home/user/micromamba /home/user/micromamba-bin 2>/dev/null
43
43
touch /home/user/.bash_profile
44
44
45
- - name : provision-with -micromamba
46
- uses : mamba-org/setup-micromamba@v1
45
+ - name : setup -micromamba
46
+ uses : mamba-org/setup-micromamba@v2.0.0
47
47
with :
48
48
generate-run-shell : true
49
- post-cleanup : all
49
+ micromamba-version : ' 2.0.2-2'
50
+ post-cleanup : ' all'
51
+ init-shell : bash
50
52
environment-file : .github/env.yaml
51
53
create-args : >-
52
54
python=${{ matrix.python-version }}
@@ -57,15 +59,15 @@ jobs:
57
59
pip
58
60
59
61
- name : Install genbadge from pip
60
- shell : micromamba-shell {0} # necessary for conda env to be active
62
+ shell : bash -l {0}
61
63
run : pip install genbadge[all]
62
64
63
65
- name : List installed package versions
64
- shell : micromamba-shell {0} # necessary for conda env to be active
66
+ shell : bash -l {0}
65
67
run : micromamba list
66
68
67
69
- name : Lint with flake8
68
- shell : micromamba-shell {0} # necessary for conda env to be active
70
+ shell : bash -l {0}
69
71
run : |
70
72
# F Codes: https://flake8.pycqa.org/en/latest/user/error-codes.html
71
73
# E Code: https://pycodestyle.pycqa.org/en/latest/intro.html#error-codes
80
82
flake8 . --exclude=docs --ignore=C901,E226 --count --exit-zero --max-complexity=10 --max-line-length=9999 --statistics --format=html --htmldir=./reports/flake8/ --tee --output-file=./reports/flake8/flake8stats.txt
81
83
82
84
- name : Generate Flake8 badge
83
- shell : micromamba-shell {0} # necessary for conda env to be active
85
+ shell : bash -l {0}
84
86
run : |
85
87
genbadge flake8 --name "Flake8" --input-file ./reports/flake8/flake8stats.txt --output-file ./reports/flake8/flake8badge.svg
86
88
91
93
path : ' ./biobb_common'
92
94
93
95
- name : Run tests
94
- shell : micromamba-shell {0} # necessary for conda env to be active
96
+ shell : bash -l {0}
95
97
run : |
96
98
# Ignoring docker and singularity tests
97
99
export PYTHONPATH=.:./biobb_common:$PYTHONPATH
@@ -103,12 +105,12 @@ jobs:
103
105
pytest biobb_structure_utils/test/unitests/ --cov=biobb_structure_utils/ --cov-report=xml --ignore-glob=*container.py --ignore-glob=*docker.py --ignore-glob=*singularity.py --junit-xml=./reports/junit/junit.xml --html=./reports/junit/report.html
104
106
105
107
- name : Generate Tests badge
106
- shell : micromamba-shell {0} # necessary for conda env to be active
108
+ shell : bash -l {0}
107
109
run : |
108
110
genbadge tests --name "Tests" --input-file ./reports/junit/junit.xml --output-file ./reports/junit/testsbadge.svg
109
111
110
112
- name : Generate Coverage badge
111
- shell : micromamba-shell {0} # necessary for conda env to be active
113
+ shell : bash -l {0}
112
114
run : |
113
115
# Create directory for flake8 reports
114
116
mkdir -p ./reports/coverage
0 commit comments