-
Notifications
You must be signed in to change notification settings - Fork 37
55 lines (43 loc) · 1.41 KB
/
build-test.yml
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
name: Build and Test
# Run this workflow whenever a PR is created or pushed to.
on:
pull_request:
types: [opened, synchronize]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.5", "3.6", "3.7"]
fail-fast: False
steps:
- uses: actions/checkout@v3
# https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches
- run: git fetch --prune --unshallow
# We use Python from deadsnakes/action because the Python from
# actions/setup-python links witih RUNPATH which is not compatible
# with StaticX. See #224.
- name: Set up Python ${{ matrix.python-version }}
uses: deadsnakes/action@v3.0.1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
docker version
sudo apt-get update
sudo apt-get install -y busybox musl-tools scons
pip install wheel
- name: Run tests
run: |
# Build and install a wheel
python setup.py bdist_wheel
pip install dist/staticx-*-py3-none-manylinux1_x86_64.whl
staticx --version
# Run unit tests
pytest -v
# Run inegration tests
test/run_all.sh
STATICX_FLAGS='--no-compress' test/run_all.sh
STATICX_FLAGS='--strip' test/run_all.sh