File tree 2 files changed +44
-1
lines changed
2 files changed +44
-1
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,13 @@ name: Test PR
3
3
on : [pull_request]
4
4
5
5
jobs :
6
+
6
7
lint :
7
8
runs-on : ubuntu-latest
8
9
steps :
9
10
- uses : actions/checkout@v2
10
11
- uses : psf/black@stable
12
+
11
13
test :
12
14
runs-on : ${{ matrix.os }}
13
15
strategy :
33
35
coverage xml
34
36
- name : Upload Coverage to Codecov
35
37
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 45
45
"ray" ,
46
46
"shap==0.44.1" ,
47
47
"xarray==2023.1.0" ,
48
- "bert-sklearn @ git+https://github.com/charles9n/bert-sklearn.git#egg=bert-sklearn " ,
48
+ "bert-sklearn" ,
49
49
],
50
50
}
51
51
You can’t perform that action at this time.
0 commit comments