Skip to content

Commit

Permalink
FIX: set makefile python command according to OS.
Browse files Browse the repository at this point in the history
  • Loading branch information
phmbressan authored and Gui-FernandesBR committed Feb 6, 2024
1 parent dfbf8ba commit 49d1801
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
# Set PYTHON variable according to OS
ifeq ($(OS),Windows_NT)
PYTHON=python
else
PYTHON=python3
endif

pytest:
python3 -m pytest tests
$(PYTHON) -m pytest tests

pytest-slow:
python3 -m pytest tests -vv -m slow --runslow
$(PYTHON) -m pytest tests -vv -m slow --runslow

coverage:
python3 -m pytest --cov=rocketpy tests
$(PYTHON) -m pytest --cov=rocketpy tests

coverage-report:
python3 -m pytest --cov=rocketpy tests --cov-report html
$(PYTHON) -m pytest --cov=rocketpy tests --cov-report html

install:
python3 -m pip install --upgrade pip
$(PYTHON) -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-optional.txt
pip install -e .
Expand All @@ -26,5 +33,5 @@ pylint:
-pylint rocketpy tests --output=.pylint-report.txt

build-docs:
cd docs && python3 -m pip install -r requirements.txt && make html
cd docs && $(PYTHON) -m pip install -r requirements.txt && make html
cd ..

0 comments on commit 49d1801

Please sign in to comment.