From 83892f55c3d4cfa295624ee2f6e96c0ee1245f60 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Mon, 9 Sep 2024 13:33:13 +0200 Subject: [PATCH] workflow: ensure "make test" builds externals and use in workflow This commit ensures that externals are build during the tests and that the GH action will test with externals too. This is slightly hacky as it requires the network. Eventually we can pull in externals via build-deps or vendor them but for now this unblocks the otk work. --- .github/workflows/test.yml | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8e640f19..5a06a1ae 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,7 +27,7 @@ jobs: python -m pip install --upgrade pip pip install .[dev] - name: Run unit tests - run: PYTHONPATH=./src pytest + run: PYTHONPATH=./src make test - name: Validate OTK configuration run: | for f in example/*/*.yaml; do diff --git a/Makefile b/Makefile index 9af8087d..90da748e 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ format: @find src test -name '*.py' | xargs autopep8 --in-place .PHONY: test -test: +test: external @pytest .PHONY: push-check