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