Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rasbt committed Mar 28, 2024
1 parent 2e5e46a commit 9b983f3
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions .github/workflows/python-package-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,34 +14,30 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.9
- name: Prepare environment variable
run: |
echo "CONDA=$HOME/miniconda" >> $GITHUB_ENV
echo "$HOME/miniconda/bin" >> $GITHUB_PATH
- name: Install packages and test with pytest
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: |
source $CONDA/etc/profile.d/conda.sh
conda config --add channels conda-forge
conda create -n mlxtend python=3.10 --yes
conda activate mlxtend
conda env update --file environment.yml
pip install scikit-learn==1.1.3
pip install pandas==1.3.5
conda install tensorflow joblib pytest -y -q
conda install imageio scikit-image -y -q
conda install dlib -y -q
pip install markdown
pip install coverage
pip install scikit-learn==1.1.3 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

0 comments on commit 9b983f3

Please sign in to comment.