forked from CensoredUsername/unrpyc
-
Notifications
You must be signed in to change notification settings - Fork 6
47 lines (39 loc) · 1.43 KB
/
python-app.yaml
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
name: Test build and run tests
on:
push:
branches: [ legacy, legacy-dev ]
pull_request:
branches: [ legacy, legacy-dev ]
jobs:
tests-py2:
name: Runs tests that require python 2
runs-on: ubuntu-latest
container:
image: python:2.7.18-buster
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
# - name: Set up Python 2.7
# uses: actions/setup-python@v2
# with:
# python-version: "2.7"
- name: Test by decompiling a script and building un.rpyc
run: |
echo "Testing the command line tool"
./unrpyc.py --clobber --init-offset "testcases/compiled/**/*.rpyc"
diff -ur testcases/expected testcases/compiled -x "*.rpyc"
echo "Compiling un.rpyc"
cd un.rpyc;
./compile.py -p 1
cd ..
# test all the different iterations of it
echo "Testing un.rpyc"
./testcases/test_un_rpyc.py --unrpyc un.rpyc/un.rpyc "testcases/compiled/**/*.rpyc"
diff -ur testcases/expected testcases/compiled -x "*.rpyc"
echo "Testing bytecode.rpyb"
./testcases/test_un_rpyc.py --unrpyb un.rpyc/bytecode.rpyb "testcases/compiled/**/*.rpyc"
diff -ur testcases/expected testcases/compiled -x "*.rpyc"
echo "Testing un.rpy"
./testcases/test_un_rpyc.py --unrpy un.rpyc/un.rpy "testcases/compiled/**/*.rpyc"
diff -ur testcases/expected testcases/compiled -x "*.rpyc"