forked from clearbluejar/ghidriff
-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (62 loc) · 1.9 KB
/
Copy pathpytest-docker.yml
File metadata and controls
69 lines (62 loc) · 1.9 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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Pytest Python Package In Docker Image
on:
# push:
# # branches: [ "main" ]
# paths:
# # - 'ghidriff/**'
# # - 'tests/**'
# - '.github/workflows/pytest-docker.yml'
# pull_request:
# branches: [ "main" ]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# cover the latest and all versions of all subreleases
image: [
"latest",
"11.3ghidra3.12python-bookworm",
"11.3ghidra3.11python-bookworm",
"11.3ghidra3.10python-bookworm",
# "11.3ghidra3.9python-bookworm",
]
container:
image: ghcr.io/clearbluejar/ghidra-python:${{ matrix.image }}
env:
GHIDRA_INSTALL_DIR: /ghidra
steps:
- uses: actions/checkout@v3
with:
path: ghidriff
- run: |
mkdir -p /github
ln -s /root $HOME # Create Symlink /github/home
#chown -R 777 /__w
# python -m venv .env
# source .env/bin/activate
# ls -a
env
# ls /usr/local/include/
ls -R ~/.
pip install --upgrade pip
cd ghidriff
# install ghidriff package and testing reqs
pip install ".[testing]"
ls -R /root
#pyghidra &
#sleep 10
#killall python
# source .env/bin/activate
# #init pyghidra
python tests/init_pyghidra.py
# pushd /tmp
# popd
# download data to shared test data
if [ ! -d "tests/data" ]; then git clone https://github.com/clearbluejar/ghidriff-test-data.git tests/data; fi
pytest -rAv
shell: bash