mirror of
https://github.com/clearbluejar/ghidriff
synced 2026-06-08 13:32:44 +00:00
42 lines
1.3 KiB
YAML
42 lines
1.3 KiB
YAML
# 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 Local Repo 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 pyghidra.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 |