diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a2d0d74..769eb24 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,7 +25,7 @@ jobs: if: ${{ matrix.os == 'windows-latest' }} run: pip install --upgrade --user pip setuptools codecov - name: Install dependencies - run: make deps + run: make dev_install - name: Code Check - Pylint run: make pylint - name: Static Type Check - Mypy diff --git a/Makefile b/Makefile index 3170f65..9e20e6e 100644 --- a/Makefile +++ b/Makefile @@ -1,20 +1,22 @@ TEST_ARTIFACTS ?= /tmp/coverage -.PHONY: install deps - -deps: install - pip install -r dev-requirements.txt +.PHONY: install dev_install static_type_check pylint style_check test install: pip install --upgrade pip setuptools pip install -r requirements.txt +dev_install: install + pip install -r dev-requirements.txt + static_type_check: mypy media_downloader.py utils --ignore-missing-imports pylint: pylint media_downloader.py utils -r y +style_check: static_type_check pylint + test: py.test --cov media_downloader --doctest-modules \ --cov utils \