Skip to content

fix docs workflow

fix docs workflow #51

Workflow file for this run

# 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.1.2ghidra3.12python-bookworm",
"11.0.3ghidra3.11python-bookworm",
"10.4ghidra3.11python-bookworm",
"10.4ghidra3.9python-bookworm",
"10.3.3ghidra3.10python-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
#pyhidra &
#sleep 10
#killall python
# source .env/bin/activate
# #init pyhidra
python -m pyhidra.install_plugins
# 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