Skip to content

fix: resolve circular import in tests package #8

fix: resolve circular import in tests package

fix: resolve circular import in tests package #8

Workflow file for this run

name: idalib-tests
on:
push:
branches:
- main
pull_request:
pull_request_target:
workflow_dispatch:
jobs:
idalib-tests:
runs-on: ubuntu-latest
# Skip pull_request from forks (those go through pull_request_target instead)
if: |
github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name == github.repository
permissions:
contents: write
packages: read
pull-requests: write
container:
image: ghcr.io/mrexodia/ida-docker/ida:9.1
credentials:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: true
- uses: astral-sh/setup-uv@v7
- name: Run tests with coverage
run: |
uv run coverage erase
uv run coverage run -m ida_pro_mcp.test tests/crackme03.elf -q
uv run coverage run --append -m ida_pro_mcp.test tests/typed_fixture.elf -q
- name: Fix git safe directory
run: git config --global --add safe.directory /github/workspace
- name: Coverage comment
id: coverage_comment
uses: py-cov-action/python-coverage-comment-action@v3
with:
GITHUB_TOKEN: ${{ github.token }}
- name: Store PR comment artifact
uses: actions/upload-artifact@v4
if: steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true'
with:
name: python-coverage-comment-action
path: python-coverage-comment-action.txt