Skip to content

Commit ae4e4ec

Browse files
authored
Merge dc70635 into 44d8e0f
2 parents 44d8e0f + dc70635 commit ae4e4ec

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

.github/workflows/test-pr.yml

+43
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ name: Test PR
33
on: [pull_request]
44

55
jobs:
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:
@@ -33,3 +35,44 @@ jobs:
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

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
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

0 commit comments

Comments
 (0)