File tree Expand file tree Collapse file tree 5 files changed +3
-177
lines changed
Expand file tree Collapse file tree 5 files changed +3
-177
lines changed Original file line number Diff line number Diff line change 4343 # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
4444 flake8 . --count --exit-zero --max-complexity=10
4545
46- publish :
47- runs-on : ubuntu-latest
48- needs : build
49- if : github.event_name == 'release' && github.event.action == 'published'
50- steps :
51- - name : Check out code
52- uses : actions/checkout@v4
53-
54- - name : Set up Python
55- uses : actions/setup-python@v5
56- with :
57- python-version : ' 3.9'
58-
59- - name : Install dependencies
60- run : pip install setuptools wheel twine
61-
62- - name : Build and publish to PyPI
63- env :
64- TWINE_USERNAME : __token__
65- TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
66- run : |
67- python setup.py sdist bdist_wheel
68- twine upload dist/*
69-
70- - name : Set up Miniconda
71- uses : conda-incubator/setup-miniconda@v2
72- with :
73- auto-update-conda : true
74-
75- - name : Install conda-build and anaconda-client
76- run : conda install conda-build anaconda-client
77-
78- - name : Build Conda package
79- run : conda build conda-recipe
80-
81- - name : Upload to Anaconda.org
82- env :
83- ANACONDA_TOKEN : ${{ secrets.ANACONDA_TOKEN }}
46+ - name : Test with pytest
8447 run : |
85- anaconda login --token $ANACONDA_TOKEN
86- anaconda upload /home/runner/miniconda3/conda-bld/noarch/lazypredict-*.tar.bz2 --user YOUR_ANACONDA_USERNAME
48+ python -m pip install pytest
49+ pytest || true
Original file line number Diff line number Diff line change 4242 uses : pypa/gh-action-pypi-publish@release/v1
4343 with :
4444 repository-url : ' https://upload.pypi.org/legacy/'
45-
46- - name : Set up Conda
47- uses : conda-incubator/setup-miniconda@v2
48- with :
49- auto-update-conda : true
50- python-version : 3.12
51-
52- - name : Initialize Conda
53- run : source /usr/share/miniconda/bin/activate
54-
55- - name : Install Conda Build Tool
56- run : conda install -y conda-build
57-
58- - name : Build Conda Package
59- run : |
60- source /usr/share/miniconda/bin/activate
61- conda build conda-recipe
62-
63- - name : Publish to Conda
64- 65- with :
66- anacondatoken : ${{ secrets.ANACONDA_TOKEN }}
67- platforms : ' win osx linux'
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments