From ea9889c1a7ca3134e66e96af4c4eff232a928f38 Mon Sep 17 00:00:00 2001 From: Christian Krakau-Louis Date: Sun, 9 Feb 2025 16:16:20 +0100 Subject: [PATCH] Create tests.yaml --- .github/workflows/tests.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/tests.yaml diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 00000000..0bc2d723 --- /dev/null +++ b/.github/workflows/tests.yaml @@ -0,0 +1,26 @@ +name: Run Tests & Linting + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.11" + + - name: Install Dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Run Tests + run: pytest tests/ + + - name: Run Linter (Flake8) + run: flake8 app/