From 65d2508f70701872ebed531e9e150bfe5dd98b90 Mon Sep 17 00:00:00 2001 From: Florian Maas Date: Sat, 18 Mar 2023 17:49:57 +0100 Subject: [PATCH] Run `make check` in workflow to prevent skipping mypy when tox is not enabled (#86) --- Makefile | 2 +- .../.github/workflows/main.yml | 11 ++--------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 1f0bd8e..b55dc93 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ bake-with-inputs: ## bake with inputs and overwrite if exists. @cookiecutter . --overwrite-if-exists .PHONY: bake-and-test-deploy -bake-and-test-deploy: +bake-and-test-deploy: ## For quick publishing to cookiecutter-poetry-example to test GH Actions @rm -rf cookiecutter-poetry-example || true @cookiecutter --no-input . --overwrite-if-exists \ author="Florian Maas" \ diff --git a/{{cookiecutter.project_name}}/.github/workflows/main.yml b/{{cookiecutter.project_name}}/.github/workflows/main.yml index edfb26b..d62d56b 100644 --- a/{{cookiecutter.project_name}}/.github/workflows/main.yml +++ b/{{cookiecutter.project_name}}/.github/workflows/main.yml @@ -22,15 +22,8 @@ jobs: - name: Set up the environment uses: ./.github/actions/setup-poetry-env - - name: Run pre-commit - run: poetry run pre-commit run -a --show-diff-on-failure -{% if cookiecutter.deptry == "y" %} - - name: Inspect dependencies - run: poetry run deptry . -{%- endif %} - - - name: Check Poetry lock file consistency - run: poetry lock --check + - name: Run checks + run: make check tox: runs-on: ubuntu-latest