From a97349a82b9bdddf83556d5402c5bbe12eba689d Mon Sep 17 00:00:00 2001 From: Karl Brown Date: Fri, 21 Jun 2024 14:50:17 -0400 Subject: [PATCH] re-adds test target, fixes script-ci --- .github/workflows/script-ci.yml | 2 -- Makefile | 5 ++++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/script-ci.yml b/.github/workflows/script-ci.yml index 3b0928c..1f9ca6b 100644 --- a/.github/workflows/script-ci.yml +++ b/.github/workflows/script-ci.yml @@ -23,7 +23,5 @@ jobs: uses: actions/setup-python@v5 with: python-version-file: '.python-version' # Read python version from a file - - name: Install dependencies - run: make python-install - name: Run tests run: make test diff --git a/Makefile b/Makefile index c9c4614..c8b30f4 100644 --- a/Makefile +++ b/Makefile @@ -22,8 +22,11 @@ $(INSTALL_STAMP): pyproject.toml poetry.lock touch $(INSTALL_STAMP) ## Test targets +.PHONY: test +test: $(INSTALL_STAMP) unit-test lint ## Run tests and lint checks + .PHONY: unit-test -unit-test: $(INSTALL_STAMP) ## Run python unit tests +unit-test: $(INSTALL_STAMP) ## Run python unit tests "$(POETRY)" run pytest -v --cov --cov-report term --cov-report html .PHONY: lint