Skip to content

Commit

Permalink
Run make check in workflow to prevent skipping mypy when tox is not…
Browse files Browse the repository at this point in the history
… enabled (#86)
  • Loading branch information
fpgmaas authored Mar 18, 2023
1 parent 110832b commit 65d2508
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down
11 changes: 2 additions & 9 deletions {{cookiecutter.project_name}}/.github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 65d2508

Please sign in to comment.