Skip to content

Commit

Permalink
Do not run tests if lint fails (#712)
Browse files Browse the repository at this point in the history
  • Loading branch information
leplatrem committed Jan 24, 2024
1 parent 61828d8 commit bcc2497
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:

unit-tests:
runs-on: ubuntu-latest
needs: lint
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
Expand Down Expand Up @@ -58,6 +59,7 @@ jobs:

functional-tests:
runs-on: ubuntu-latest
needs: lint
services:
postgres:
image: postgres
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bcc2497

Please sign in to comment.