|
5 | 5 | branches: [ "main" ] |
6 | 6 |
|
7 | 7 | jobs: |
8 | | - test-native-library-default-command: |
9 | | - name: Test creating native library packages |
| 8 | + test-native-fpm-deb-default-command: |
| 9 | + name: Test creating native fpm-deb packages |
10 | 10 |
|
11 | 11 | runs-on: ubuntu-latest |
12 | 12 |
|
13 | 13 | steps: |
14 | 14 | - uses: actions/checkout@v4 |
15 | 15 | - name: Set up test environment |
16 | | - run: cp -a test/. . |
| 16 | + run: | |
| 17 | + cp -a test/. . |
| 18 | + rm -rf dist |
17 | 19 |
|
18 | | - - name: Create library packages |
| 20 | + - name: Create packages |
19 | 21 | uses: ./native |
20 | 22 | with: |
21 | | - debian-dist-type: 'library' |
| 23 | + debian-dist-type: 'fpm-deb' |
22 | 24 |
|
23 | 25 | - name: Assert packages have created |
24 | 26 | run: | |
25 | 27 | set -e |
26 | 28 | ls -l dist |
27 | 29 | ls dist/test-module-1.0.0.tar.gz |
28 | | - ls dist/test_module-1.0.0-py3-none-linux_x86_64.whl |
| 30 | + ls dist/test_module-1.0.0-py3-none-any.whl |
29 | 31 | ls dist/python3-test-module_1.0.0_all.deb |
30 | 32 |
|
31 | | - test-native-library-custom-command: |
32 | | - name: Test creating native library packages |
| 33 | + test-native-fpm-deb-custom-command: |
| 34 | + name: Test creating native fpm-deb packages |
33 | 35 |
|
34 | 36 | runs-on: ubuntu-latest |
35 | 37 |
|
36 | 38 | steps: |
37 | 39 | - uses: actions/checkout@v4 |
38 | 40 | - name: Set up test environment |
39 | | - run: cp -a test/. . |
| 41 | + run: | |
| 42 | + cp -a test/. . |
| 43 | + rm -rf dist |
40 | 44 |
|
41 | | - - name: Create library packages |
| 45 | + - name: Create packages |
42 | 46 | uses: ./native |
43 | 47 | with: |
44 | | - debian-dist-type: 'library' |
| 48 | + debian-dist-type: 'fpm-deb' |
45 | 49 | debian-dist-command: 'fpm -s python -t deb --package dist --force --log warn setup.py' |
46 | 50 |
|
47 | 51 | - name: Assert packages have created |
48 | 52 | run: | |
49 | 53 | set -e |
50 | 54 | ls -l dist |
51 | 55 | ls dist/test-module-1.0.0.tar.gz |
52 | | - ls dist/test_module-1.0.0-py3-none-linux_x86_64.whl |
| 56 | + ls dist/test_module-1.0.0-py3-none-any.whl |
53 | 57 | ls dist/python-test-module_1.0.0_all.deb |
54 | 58 |
|
55 | | - test-native-application-default-command: |
56 | | - name: Test creating native application packages |
| 59 | + test-native-dh-virtualenv-default-command: |
| 60 | + name: Test creating native dh-virtualenv packages |
57 | 61 |
|
58 | 62 | runs-on: ubuntu-latest |
59 | 63 |
|
60 | 64 | steps: |
61 | 65 | - uses: actions/checkout@v4 |
62 | 66 | - name: Set up test environment |
63 | | - run: cp -a test/. . |
| 67 | + run: | |
| 68 | + cp -a test/. . |
| 69 | + rm -rf dist |
64 | 70 |
|
65 | | - - name: Create application packages |
| 71 | + - name: Create packages |
66 | 72 | uses: ./native |
67 | 73 | with: |
68 | | - debian-dist-type: 'application' |
| 74 | + debian-dist-type: 'dh-virtualenv' |
69 | 75 |
|
70 | 76 | - name: Assert packages have created |
71 | 77 | run: | |
72 | 78 | set -e |
73 | 79 | ls -l dist |
74 | 80 | ls dist/test-module-1.0.0.tar.gz |
75 | | - ls dist/test_module-1.0.0-py3-none-linux_x86_64.whl |
76 | | - ls dist/test-module_1.0.0_amd64.deb |
| 81 | + ls dist/test_module-1.0.0-py3-none-any.whl |
| 82 | + ls dist/test-module_1.0.0-1_all.deb |
77 | 83 |
|
78 | | - test-native-application-custom-command: |
79 | | - name: Test creating native application packages |
| 84 | + test-native-dh-virtualenv-custom-command: |
| 85 | + name: Test creating native dh-virtualenv packages |
80 | 86 |
|
81 | 87 | runs-on: ubuntu-latest |
82 | 88 |
|
83 | 89 | steps: |
84 | 90 | - uses: actions/checkout@v4 |
85 | 91 | - name: Set up test environment |
86 | | - run: cp -a test/. . |
| 92 | + run: | |
| 93 | + cp -a test/. . |
| 94 | + rm -rf dist |
87 | 95 |
|
88 | | - - name: Create application packages |
| 96 | + - name: Create packages |
89 | 97 | uses: ./native |
90 | 98 | with: |
91 | | - debian-dist-type: 'application' |
| 99 | + debian-dist-type: 'dh-virtualenv' |
92 | 100 | debian-dist-command: 'dpkg-buildpackage -us -ui -uc -tc' |
93 | 101 |
|
94 | 102 | - name: Assert packages have created |
95 | 103 | run: | |
96 | 104 | set -e |
97 | 105 | ls -l dist |
98 | 106 | ls dist/test-module-1.0.0.tar.gz |
99 | | - ls dist/test_module-1.0.0-py3-none-linux_x86_64.whl |
| 107 | + ls dist/test_module-1.0.0-py3-none-any.whl |
100 | 108 | ls dist/test-module_1.0.0_amd64.deb |
0 commit comments