use test data repo for dev and tests #8
Workflow file for this run
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
# 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 Devcontainer | |
on: | |
push: | |
# branches: [ "main", "pytest" ] | |
branches: [ "pytest" ] | |
# pull_request: | |
# branches: [ "main" ] | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
image: ["latest", "10.1.5ghidra3.11python-bookworm"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Test with pytest on devcontainer | |
uses: devcontainers/[email protected] | |
with: | |
imageName: ghcr.io/clearbluejar/ghidra-python | |
cacheFrom: ghcr.io/clearbluejar/ghidra-python | |
imageTag: ${{matrix.image}} | |
push: never | |
runCmd: | | |
pip install --upgrade pip | |
pip install -e ".[testing]" | |
# download data to shared data | |
git clone [email protected]:clearbluejar/ghidriff-test-data.git tests/data | |
pytest -rA |