Skip to content

Commit

Permalink
workflows: ease local testing [MILK-135]
Browse files Browse the repository at this point in the history
- replace 'pip install -e .[dev]' by 'make install-py'
- create a default 'make' target to locally run: install-py, validate-style, lint and test

[MILK-135]
  • Loading branch information
Prime541 committed Jun 7, 2024
1 parent 88379bb commit b4dd6cb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ jobs:
python-version: ${{ matrix.python-version }}

- id: dependencies
run: |
pip install -e .[dev]
run: make install-py

- id: validate-style
run: make validate-style
Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ release = 1
PYTHON ?= python3
PYTHON_DIRS = aiven tests

all: install-py validate-style lint test

install-py:
$(PYTHON) -m pip install -e .[dev]

test: pytest

lint: ruff flake8 mypy

reformat:
Expand Down
2 changes: 1 addition & 1 deletion aiven/client/client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copright 2015, Aiven, https://aiven.io/
# Copyright 2015, Aiven, https://aiven.io/
#
# This file is under the Apache License, Version 2.0.
# See the file `LICENSE` for details.
Expand Down

0 comments on commit b4dd6cb

Please sign in to comment.