forked from EffectiveRange/python-package-github-action
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (39 loc) · 1.2 KB
/
test_native.yml
File metadata and controls
50 lines (39 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Test platform independent Python packaging
on:
pull_request:
branches: [ "main" ]
jobs:
test-native-library:
name: Test creating native library packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up test environment
run: cp -a test/. .
- name: Create library packages
uses: ./native
with:
debian-dist-type: 'library'
- name: Assert packages have created
run: |
set -e
ls dist/test-module-1.0.0.tar.gz
ls dist/test_module-1.0.0-py3-none-linux_x86_64.whl
ls dist/python3-test-module_1.0.0_all.deb
test-native-application:
name: Test creating native application packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up test environment
run: cp -a test/. .
- name: Create application packages
uses: ./native
with:
debian-dist-type: 'application'
- name: Assert packages have created
run: |
set -e
ls dist/test-module-1.0.0.tar.gz
ls dist/test_module-1.0.0-py3-none-linux_x86_64.whl
ls dist/test-module_1.0.0_amd64.deb