Skip to content

hotfix to pip freeze pyhidra to 0.5.4 #102

hotfix to pip freeze pyhidra to 0.5.4

hotfix to pip freeze pyhidra to 0.5.4 #102

# 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 Devcontainer
on:
push:
branches: [ "main" ]
paths:
- 'ghidriff/**'
- 'tests/**'
- '.github/workflows/pytest-devcontainer.yml'
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Test with pytest on devcontainer
uses: devcontainers/ci@v0.3
with:
cacheFrom: ghcr.io/clearbluejar/ghidra-python
push: never
#platform: linux/amd64,linux/arm64
runCmd: |
env
ls /usr/local/include/
pip install --upgrade pip
python -m venv env
source env/bin/activate
# install package and testing
pip install -e ".[testing]"
# install plugins before use
python -m pyhidra.install_plugins
# 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 -rA -n auto