From b5850419c20251dfac144fb5b7bf07d0c74ebc97 Mon Sep 17 00:00:00 2001 From: yzamir Date: Mon, 16 Oct 2023 12:17:53 +0300 Subject: [PATCH] add github action Signed-off-by: yzamir --- .github/workflows/pr-test.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/pr-test.yml diff --git a/.github/workflows/pr-test.yml b/.github/workflows/pr-test.yml new file mode 100644 index 0000000..03740dd --- /dev/null +++ b/.github/workflows/pr-test.yml @@ -0,0 +1,31 @@ +name: Test Pull Requests + +on: + pull_request: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.11 + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install black isort + + - name: Run linters + run: | + make lint + + - name: Run tests + run: | + make test