-
Notifications
You must be signed in to change notification settings - Fork 872
44 lines (40 loc) · 1.28 KB
/
python-package-conda.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Unit tests
on:
push:
branches: master
pull_request:
branches: master
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
env:
GITHUB_ACTIONS_CI: true
steps:
- uses: actions/checkout@v2
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.9
channels: conda-forge
activate-environment: mlxtend
environment-file: environment.yml
create-env-file: true
- name: Install dependencies and run tests
shell: bash -l {0}
run: |
conda install tensorflow joblib pytest -y -q
conda install imageio scikit-image -y -q
conda install dlib -y -q
pip install scikit-learn==1.3.1 pandas==1.3.5 markdown coverage
pip install -e .
python -c "import numpy; print('NumPy:', numpy.__version__)"
python -c "import scipy; print('SciPy:', scipy.__version__)"
python -c "import sklearn; print('Scikit-learn:', sklearn.__version__)"
python -c "import pandas; print('Pandas:', pandas.__version__)"
coverage run --source=mlxtend --branch -m pytest mlxtend
coverage xml
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v2