From 8414e8f11339f0eb2e67bb66a3fed33e073814dc Mon Sep 17 00:00:00 2001 From: "Victor M. Alvarez" Date: Tue, 31 Aug 2021 19:22:49 +0200 Subject: [PATCH 1/2] Add GitHub Actions workflow for continuous testing. --- .github/workflows/build.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..76c599d --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,29 @@ + +name: Build +on: [push] +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.6, 3.7, 3.8, 3.9] + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y libmagic-dev + python -m pip install --upgrade pip + pip install flake8 pytest + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Build + run: | + python setup.py build --enable-magic --enable-dotnet + python setup.py install + - name: Run tests + run: | + python tests.py From 6bb15cfe6f533e82a057e8a8af8d76dec726809c Mon Sep 17 00:00:00 2001 From: "Victor M. Alvarez" Date: Tue, 31 Aug 2021 19:25:12 +0200 Subject: [PATCH 2/2] Checkout YARA submodule. --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 76c599d..6edaf68 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,6 +9,8 @@ jobs: python-version: [3.6, 3.7, 3.8, 3.9] steps: - uses: actions/checkout@v2 + with: + submodules: recursive - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 with: