forked from EffectiveRange/python-package-github-action
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (38 loc) · 1.13 KB
/
test_cross.yml
File metadata and controls
49 lines (38 loc) · 1.13 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
name: Test cross platform Python packaging
on:
pull_request:
branches: [ "main" ]
jobs:
test-arm32v7-cross:
name: Test creating arm32v7 packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up test environment
run: cp -a test/. .
- name: Create packages
uses: ./cross
with:
devcontainer-config: 'arm32v7'
devcontainer-command: python setup.py sdist bdist_wheel
- 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_armv7l.whl
test-amd64:
name: Test creating amd64 packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up test environment
run: cp -a test/. .
- name: Create packages
uses: ./cross
with:
devcontainer-command: python setup.py sdist bdist_wheel
- 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