From ac2db72c9bee1f6794d1f0cf8c5b8d9108c59082 Mon Sep 17 00:00:00 2001 From: Nate Harris Date: Tue, 30 Aug 2022 16:47:58 -0600 Subject: [PATCH] - Fix CI steps --- .github/workflows/tests.yml | 7 ++----- Makefile | 3 ++- dev_requirements.txt | 3 ++- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1485035..84a58fc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -38,10 +38,7 @@ jobs: python-version: 3.9 - name: Install Python dependencies - run: | - python3 -m pip install --upgrade pip - pip3 install -r requirements_test.txt + run: make install - name: Test with pytest - run: | - pytest --exitfirst --verbose --failed-first \ No newline at end of file + run: make test \ No newline at end of file diff --git a/Makefile b/Makefile index 9a2b10a..59b2008 100644 --- a/Makefile +++ b/Makefile @@ -38,7 +38,8 @@ format-check: black-check isort-check lint mypy ## install - Install the project locally install: $(PYTHON_BINARY) -m venv $(VIRTUAL_ENV) - $(VIRTUAL_BIN)/pip install -e ."[dev]" + $(VIRTUAL_BIN)/pip install -r requirements.txt + $(VIRTUAL_BIN)/pip install -r dev_requirements.txt ## isort - Sorts imports throughout the project isort: diff --git a/dev_requirements.txt b/dev_requirements.txt index da8bee2..a3ca3a5 100644 --- a/dev_requirements.txt +++ b/dev_requirements.txt @@ -4,4 +4,5 @@ isort pytest-cov==3.* pytest==7.* types-requests -types-urllib3 \ No newline at end of file +types-urllib3 +python-dotenv \ No newline at end of file