From a60d7933fd5bcc7f71992b7321ce48d8a676d71e Mon Sep 17 00:00:00 2001 From: Xen0Xys Date: Thu, 18 Apr 2024 08:55:35 +0000 Subject: [PATCH] :construction_worker: Add CI for automated python code testing --- .github/workflows/python-tests.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/python-tests.yml diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml new file mode 100644 index 00000000..14ab8ada --- /dev/null +++ b/.github/workflows/python-tests.yml @@ -0,0 +1,25 @@ +name: codestyle +on: + push: + branches: + - master + pull_request: + branches: + - master + # Allows to run this workflow manually from the Actions tab + workflow_dispatch: +jobs: + codestyle: + runs-on: ubuntu-latest + steps: + - name: "Checkout branch" + uses: actions/checkout@v4 + - name: "Set up Python on Ubuntu" + uses: actions/setup-python@v5 + with: + python-version: 3.12 + - name: "Python codestyle" + run: | + pip install ".[dev]" + pip install pytest + pytest .