File tree 1 file changed +58
-0
lines changed
1 file changed +58
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : packing
2
+
3
+ on :
4
+ push :
5
+ pull_request :
6
+ pull_request_target :
7
+ types : [labeled]
8
+
9
+ jobs :
10
+ pack_pip :
11
+ # We want to run on external PRs, but not on our own internal
12
+ # PRs as they'll be run by the push to the branch.
13
+ #
14
+ # The main trick is described here:
15
+ # https://github.com/Dart-Code/Dart-Code/pull/2375
16
+ if : (github.event_name == 'push') ||
17
+ (github.event_name == 'pull_request' &&
18
+ github.event.pull_request.head.repo.full_name != github.repository)
19
+ runs-on : ubuntu-20.04
20
+
21
+ strategy :
22
+ fail-fast : false
23
+
24
+ steps :
25
+ - name : Clone the connector repo
26
+ uses : actions/checkout@v2
27
+
28
+ - name : Install tarantool ${{ matrix.tarantool }}
29
+ uses : tarantool/setup-tarantool@v1
30
+ with :
31
+ tarantool-version : ${{ matrix.tarantool }}
32
+
33
+ - name : Setup Python for tests
34
+ uses : actions/setup-python@v2
35
+ with :
36
+ python-version : ' 3.10'
37
+
38
+ - name : Install tools for packing
39
+ run : pip install wheel
40
+
41
+ - name : Install tools for package verification
42
+ run : pip install twine
43
+
44
+ - name : Pack source code
45
+ run : python setup.py sdist
46
+
47
+ - name : Pack wheel file
48
+ run : python setup.py bdist_wheel
49
+
50
+ - name : Verify the package
51
+ run : twine check dist/*
52
+
53
+ - name : Archive pip artifacts
54
+ uses : actions/upload-artifact@v3
55
+ with :
56
+ name : pip_dist
57
+ path : |
58
+ dist
You can’t perform that action at this time.
0 commit comments