File tree Expand file tree Collapse file tree 2 files changed +44
-1
lines changed Expand file tree Collapse file tree 2 files changed +44
-1
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,13 @@ name: Test PR
33on : [pull_request]
44
55jobs :
6+
67 lint :
78 runs-on : ubuntu-latest
89 steps :
910 - uses : actions/checkout@v2
1011 - uses : psf/black@stable
12+
1113 test :
1214 runs-on : ${{ matrix.os }}
1315 strategy :
3335 coverage xml
3436 - name : Upload Coverage to Codecov
3537 uses : codecov/codecov-action@v2
38+
39+ bump :
40+ needs : test
41+ runs-on : ubuntu-latest
42+ permissions :
43+ contents : write
44+ steps :
45+ - uses : actions/checkout@v3
46+ with :
47+ fetch-depth : ' 0'
48+ - name : Bump version and push tag
49+ uses :
anothrNick/[email protected] 50+ env :
51+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
52+ WITH_V : true
53+ DEFAULT_BUMP : patch
54+
55+ build-n-publish :
56+ needs : bump
57+ name : Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
58+ runs-on : ubuntu-latest
59+ steps :
60+ - uses : actions/checkout@v1
61+ - name : Set up Python 3.8
62+ uses : actions/setup-python@v2
63+ with :
64+ python-version : 3.8
65+ - name : Install pypa/build
66+ run : |
67+ git fetch --tags
68+ git branch --create-reflog main origin/main
69+ python -m pip install build --user .
70+ - name : Build a binary wheel and a source tarball
71+ run : |
72+ python -m build --sdist --wheel --outdir dist/ .
73+ - name : Publish distribution 📦 to PyPI
74+ uses : pypa/gh-action-pypi-publish@release/v1
75+ with :
76+ user : __token__
77+ password : ${{ secrets.PYPI_API_TOKEN }}
78+ verbose : true
Original file line number Diff line number Diff line change 4545 "ray" ,
4646 "shap==0.44.1" ,
4747 "xarray==2023.1.0" ,
48- "bert-sklearn @ git+https://github.com/charles9n/bert-sklearn.git#egg=bert-sklearn " ,
48+ "bert-sklearn" ,
4949 ],
5050}
5151
You can’t perform that action at this time.
0 commit comments