forked from EffectiveRange/python-package-github-action
-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (61 loc) · 1.87 KB
/
test_main.yml
File metadata and controls
77 lines (61 loc) · 1.87 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Test Python packaging
on:
pull_request:
branches: [ "main" ]
jobs:
test-main-library:
name: Test creating 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: ./
with:
package-version: '1.1.0'
debian-dist-type: 'library'
- name: Assert packages have created
run: |
set -e
ls dist/test-module-1.1.0.tar.gz
ls dist/test_module-1.1.0-py3-none-linux_x86_64.whl
ls dist/python3-test-module_1.1.0_all.deb
test-main-application:
name: Test creating application packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up test environment
run: cp -a test/. .
- name: Create library packages
uses: ./
with:
package-version: '1.1.0'
debian-dist-type: 'application'
- name: Assert packages have created
run: |
set -e
ls dist/test-module-1.1.0.tar.gz
ls dist/test_module-1.1.0-py3-none-linux_x86_64.whl
ls dist/test-module_1.1.0_amd64.deb
test-main-cross:
name: Test creating cross packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up test environment
run: cp -a test/. .
- name: Create library packages
uses: ./
with:
package-version: '1.1.0'
debian-dist-type: 'application'
is-cross-platform: 'true'
devcontainer-config: 'arm64v8'
devcontainer-command: python setup.py sdist bdist_wheel
- name: Assert packages have created
run: |
set -e
ls dist/test-module-1.1.0.tar.gz
ls dist/test_module-1.1.0-py3-none-linux_aarch64.whl