From 8416287a4eb9bed825b8132d5a8c35e0e1032adb Mon Sep 17 00:00:00 2001 From: Chris O'Hara Date: Thu, 28 Mar 2024 09:38:51 +1000 Subject: [PATCH 1/2] Don't test examples by default --- Makefile | 5 ++++- tests/examples | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) delete mode 120000 tests/examples diff --git a/Makefile b/Makefile index 334ee978..c025bb0d 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,10 @@ typecheck: $(PYTHON) -m mypy src tests unittest: - $(PYTHON) -m pytest + $(PYTHON) -m pytest tests + +exampletest: + $(PYTHON) -m pytest examples coverage: typecheck coverage run -m unittest discover diff --git a/tests/examples b/tests/examples deleted file mode 120000 index a6573af9..00000000 --- a/tests/examples +++ /dev/null @@ -1 +0,0 @@ -../examples \ No newline at end of file From ebc43a3a611aeccf6a2b9a286129769eb02a86cf Mon Sep 17 00:00:00 2001 From: Chris O'Hara Date: Thu, 28 Mar 2024 09:41:19 +1000 Subject: [PATCH 2/2] Test examples using one python version --- .github/workflows/test.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c5fc2f47..7cb54eaa 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,6 +26,21 @@ jobs: - run: make dev - run: make test + examples: + runs-on: ubuntu-latest + strategy: + matrix: + python: ['3.12'] + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python }} + cache: pip + - run: make dev + - run: make exampletest + format: runs-on: ubuntu-latest strategy: