Skip to content

Commit

Permalink
ci: addition of tests ru
Browse files Browse the repository at this point in the history
* ci: addition of tests run

Signed-off-by: VyacheslavIurevich <[email protected]>

* fix: addition of mkdir res/out

Signed-off-by: VyacheslavIurevich <[email protected]>

* fix: addition of build-essential installation

Signed-off-by: VyacheslavIurevich <[email protected]>

* fix: changing apt to pkg

Signed-off-by: VyacheslavIurevich <[email protected]>

* fix: change pkg to apt

Signed-off-by: VyacheslavIurevich <[email protected]>

* fix: change gcc to build-essential

Signed-off-by: VyacheslavIurevich <[email protected]>

* fix: addition of apt update

Signed-off-by: VyacheslavIurevich <[email protected]>

---------

Signed-off-by: VyacheslavIurevich <[email protected]>
  • Loading branch information
VyacheslavIurevich authored Jul 31, 2024
1 parent 9cc75d9 commit 47009b7
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Run tests

on:
push:
branches: [ "main", "development" ]
pull_request:
branches: [ "main", "development" ]

jobs:
build:
runs-on: ubuntu-latest
container:
image: blacktop/ghidra
env:
GHIDRA_INSTALL_DIR: /ghidra
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
apt update
apt install build-essential -y
python -m pip install --upgrade pip
pip install pyhidra
pip install pytest
- name: Run tests
run: |
mkdir res/out
pytest src/tests/user_tests.py

0 comments on commit 47009b7

Please sign in to comment.