File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # This workflows will build and upload a Python Package using Twine when a release is published
2+ # Conda-forge bot will pick up new PyPI version and automatically create new version
3+ # For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
4+
5+ name : CD
6+
7+ on :
8+ release :
9+ types : [published]
10+
11+ jobs :
12+ deploy :
13+ strategy :
14+ matrix :
15+ os : ['ubuntu-latest']
16+ python-version : [3.8]
17+ runs-on : ${{ matrix.os }}
18+ environment : package
19+ steps :
20+ - name : Checkout
21+ uses : actions/checkout@v2
22+ - name : Cache conda
23+ uses : actions/cache@v1
24+ with :
25+ path : ~/conda_pkgs_dir
26+ key : conda-${{ matrix.os }}-python-${{ matrix.python-version }}-${{ hashFiles('environment.yml') }}
27+ - name : Setup Miniconda
28+ uses : conda-incubator/setup-miniconda@v2
29+ with :
30+ auto-update-conda : true
31+ auto-activate-base : false
32+ activate-environment : hcrystalball
33+ python-version : ${{ matrix.python-version }}
34+ use-only-tar-bz2 : true
35+ - name : Install from source
36+ # This is required for the pre-commit tests
37+ shell : pwsh
38+ run : pip install .
39+ - name : Conda list
40+ shell : pwsh
41+ run : conda list
42+ - name : Build
43+ shell : pwsh
44+ run : |
45+ pip install twine
46+ python setup.py sdist bdist_wheel
47+ - name : Publish to PyPI
48+ env :
49+ TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
50+ TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
51+ shell : pwsh
52+ run : twine upload dist/*
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ automl_settings = {
111111 " time_budget" : 10 , # in seconds
112112 " metric" : ' r2' ,
113113 " task" : ' regression' ,
114- " log_file_name" : " test/california .log" ,
114+ " log_file_name" : " test/boston .log" ,
115115}
116116X_train, y_train = fetch_california_housing(return_X_y = True )
117117# Train with labeled input data
Original file line number Diff line number Diff line change 1- __version__ = "0.6.6 "
1+ __version__ = "0.6.7 "
Original file line number Diff line number Diff line change 1818 "lightgbm>=2.3.1" ,
1919 "xgboost>=0.90,<=1.3.3" ,
2020 "scipy>=1.4.1" ,
21- # "catboost>=0.23", # making optional for conda
21+ "pandas>=1.1.4" ,
2222 "scikit-learn>=0.24" ,
2323]
2424
Original file line number Diff line number Diff line change @@ -503,7 +503,7 @@ def test_regression(self):
503503 automl_settings = {
504504 "time_budget" : 2 ,
505505 "task" : "regression" ,
506- "log_file_name" : "test/california .log" ,
506+ "log_file_name" : "test/boston .log" ,
507507 "log_training_metric" : True ,
508508 "n_jobs" : 1 ,
509509 "model_history" : True ,
@@ -625,7 +625,7 @@ def test_parallel(self, hpo_method=None):
625625 automl_settings = {
626626 "time_budget" : 10 ,
627627 "task" : "regression" ,
628- "log_file_name" : "test/california .log" ,
628+ "log_file_name" : "test/boston .log" ,
629629 "log_type" : "all" ,
630630 "n_jobs" : 1 ,
631631 "n_concurrent_trials" : 2 ,
You can’t perform that action at this time.
0 commit comments