-
Notifications
You must be signed in to change notification settings - Fork 1
84 lines (68 loc) · 1.98 KB
/
test_devcontainer.yml
File metadata and controls
84 lines (68 loc) · 1.98 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
78
79
80
81
82
83
84
name: Test Python packaging with devcontainer
on:
pull_request:
branches: [ "main" ]
jobs:
test-devcontainer-arm32v7:
name: Test creating arm32v7 packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up test environment
run: |
cp -a test/. .
rm -rf dist
- name: Create packages
uses: ./devcontainer
with:
container-platform: 'linux/arm/v7'
container-config: 'arm32v7'
debian-dist-type: 'fpm-deb'
- name: Assert packages have created
run: |
set -e
ls -l dist
ls dist/test_module-1.0.0-py3-none-any.whl
ls dist/python3-test-module_1.0.0_all.deb
test-devcontainer-arm64v8:
name: Test creating arm64v8 packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up test environment
run: |
cp -a test/. .
rm -rf dist
- name: Create packages
uses: ./devcontainer
with:
container-platform: 'linux/arm64'
container-config: 'arm64v8'
debian-dist-type: 'dh-virtualenv'
- name: Assert packages have created
run: |
set -e
ls -l dist
ls dist/test_module-1.0.0-py3-none-any.whl
ls dist/test-module_1.0.0-1_all.deb
test-devcontainer-amd64:
name: Test creating amd64 packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up test environment
run: |
cp -a test/. .
rm -rf dist
- name: Create packages
uses: ./devcontainer
with:
add-wheel-dist: 'false'
debian-dist-command: 'pack_python . --all'
- name: Assert packages have created
run: |
set -e
ls -l dist
ls dist/test_module-1.0.0-py3-none-any.whl
ls dist/python3-test-module_1.0.0_all.deb
ls dist/test-module_1.0.0-1_all.deb