From bcc2497b5cc1d8acb89be25dbc9074f203094d1d Mon Sep 17 00:00:00 2001 From: Mathieu Leplatre Date: Wed, 24 Jan 2024 15:29:18 +0100 Subject: [PATCH] Do not run tests if lint fails (#712) --- .github/workflows/test.yml | 2 ++ Makefile | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c9687c0..9766e12 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,6 +15,7 @@ jobs: unit-tests: runs-on: ubuntu-latest + needs: lint strategy: matrix: python-version: ["3.9", "3.10", "3.11"] @@ -58,6 +59,7 @@ jobs: functional-tests: runs-on: ubuntu-latest + needs: lint services: postgres: image: postgres diff --git a/Makefile b/Makefile index 6d98ec2..51b23fa 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ $(VENV)/bin/python: install: $(INSTALL_STAMP) pyproject.toml requirements.txt $(INSTALL_STAMP): $(VENV)/bin/python pyproject.toml requirements.txt $(VENV)/bin/pip install -r requirements.txt - $(VENV)/bin/pip install ".[dev]" + $(VENV)/bin/pip install -e ".[dev]" touch $(INSTALL_STAMP) lint: install