From 630a06db7292d74cdd81816f823b7be91fb4e487 Mon Sep 17 00:00:00 2001 From: sfowl Date: Tue, 1 Oct 2024 10:51:28 +1000 Subject: [PATCH] Add actions pipeline (#214) --- .github/workflows/tests.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..e002eb1 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,33 @@ +name: RapiDAST + +on: + push: + branches: ["development", "main"] + pull_request: + branches: ["development", "main"] + +permissions: + contents: read + +jobs: + test: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up Python 3.9 + uses: actions/setup-python@v3 + with: + python-version: "3.9" + - name: Install dependencies + run: | + python3 -m ensurepip --upgrade + pip install --no-cache-dir -r requirements.txt -r requirements-dev.txt + - name: Test with pytest + run: | + pytest + - name: Lint with pre-commit hook + continue-on-error: true # XXX temporary, until all code linted + run: | + pre-commit run --all-files