Backport testcases handling from dev @ 857a084 #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | | |
./unrpyc.py --clobber --init-offset "testcases/compiled/**/*.rpyc" | |
diff -ur testcases/expected testcases/compiled -x "*.rpyc" | |
cd un.rpyc; | |
./compile.py -p 1 | |
cd .. |