Skip to content

Commit

Permalink
- Fix bug pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
maycuatroi committed Jul 28, 2024
1 parent 9339cc9 commit 104594c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,6 @@ jobs:
- name: Install Pip
run: pip install --user --upgrade pip
- name: Install project
run: |
if [ "${{ matrix.full }}" = "true" ]; then
make test-full
else
make test-lean
fi
run: pip install -e .[test]
- name: run tests
run: pytest -s -vvvv -l --tb=long tests
14 changes: 1 addition & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ show: ## Show the current environment.
install: ## Install the project in dev mode.
@if [ "$(USING_POETRY)" ]; then poetry install && exit; fi
@echo "Don't forget to run 'make virtualenv' if you got errors."
@if [ "$(TEST_FULL)" = "1" ]; then \
$(ENV_PREFIX)pip install -e .[test,full]; \
else \
$(ENV_PREFIX)pip install -e .[test]; \
fi
$(ENV_PREFIX)pip install -e .[test,full]

.PHONY: fmt
fmt: ## Format code using black & isort.
Expand All @@ -46,14 +42,6 @@ test: lint ## Run tests and generate coverage report.
$(ENV_PREFIX)coverage xml
$(ENV_PREFIX)coverage html

.PHONY: test-full
test-full: ## Run tests with full requirements.
TEST_FULL=1 $(MAKE) test

.PHONY: test-lean
test-lean: ## Run tests with lean requirements.
TEST_FULL=0 $(MAKE) test

.PHONY: watch
watch: ## Run tests on every change.
ls **/**.py | entr $(ENV_PREFIX)pytest -s -vvv -l --tb=long --maxfail=1 tests/
Expand Down

0 comments on commit 104594c

Please sign in to comment.