From e6fe52137b58c676e41f36aed0cf53fb02d25987 Mon Sep 17 00:00:00 2001 From: DOCtorActoAntohich Date: Tue, 26 Sep 2023 11:59:47 +0300 Subject: [PATCH] add a workflow for tests --- .github/workflows/run-tests.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/run-tests.yaml diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml new file mode 100644 index 0000000..c89b56f --- /dev/null +++ b/.github/workflows/run-tests.yaml @@ -0,0 +1,23 @@ +name: Semgrep Tests +on: [push] + +jobs: + run-tests: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.8", "3.11"] + steps: + - uses: actions/checkout@v4 + - name: Setup Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install Poetry + uses: snok/install-poetry@v1 + with: + virtualenvs-create: false + - name: Install dependencies + run: poetry install --no-interaction --no-root + - name: Run tests + run: make test