Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,9 @@ jobs:

- name: Run black formatting check
run: alix-venv/bin/black --check .
continue-on-error: true # TODO: Fix formatting issues in separate PR

- name: Run flake8 linting
run: alix-venv/bin/flake8 .
continue-on-error: true # TODO: Fix linting issues in separate P
run: make check-style

- name: Run tests
run: alix-venv/bin/pytest --tb=short
run: make test
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: help install dev-install test clean venv
.PHONY: help install dev-install check-style test clean venv

VENV = alix-venv
PYTHON = $(VENV)/bin/python
Expand All @@ -17,6 +17,14 @@ install: venv ## Install alix in production mode
dev-install: venv ## Install alix with dev dependencies
$(PIP) install -e ".[dev]"

black: dev-install ## Run black
$(VENV)/bin/black alix
$(VENV)/bin/black tests

check-style: dev-install ## Run style checks
$(VENV)/bin/flake8 alix --count --show-source --statistics
$(VENV)/bin/flake8 tests --count --show-source --statistics

test: dev-install ## Run tests
$(VENV)/bin/pytest

Expand Down
Loading