diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 65708b929..4ce68e6d8 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -19,6 +19,11 @@ jobs: with: python-version: ${{ matrix.python-version }} + - name: Install tox 🧰 + run: | + python -m pip install --upgrade pip + python -m pip install tox + - name: Lint Syntax 🧪🖋 run: tox -e lint @@ -36,6 +41,11 @@ jobs: with: python-version: ${{ matrix.python-version }} + - name: Install tox 🧰 + run: | + python -m pip install --upgrade pip + python -m pip install tox + - name: Test & Coverage 🧪 run: tox -e test diff --git a/.github/workflows/push-master.yml b/.github/workflows/push-master.yml index 122c54f97..5023f2a63 100644 --- a/.github/workflows/push-master.yml +++ b/.github/workflows/push-master.yml @@ -19,6 +19,11 @@ jobs: with: python-version: ${{ matrix.python-version }} + - name: Install tox 🧰 + run: | + python -m pip install --upgrade pip + python -m pip install tox + - name: Lint Syntax 🧪🖋 run: tox -e lint @@ -36,6 +41,11 @@ jobs: with: python-version: ${{ matrix.python-version }} + - name: Install tox 🧰 + run: | + python -m pip install --upgrade pip + python -m pip install tox + - name: Test & Coverage 🧪 run: tox -e test @@ -64,6 +74,11 @@ jobs: with: python-version: '3.6' + - name: Install tox 🧰 + run: | + python -m pip install --upgrade pip + python -m pip install tox + - name: Build 🛠 run: tox -e build diff --git a/.github/workflows/push-tag.yml b/.github/workflows/push-tag.yml index ece785ace..c9e524a26 100644 --- a/.github/workflows/push-tag.yml +++ b/.github/workflows/push-tag.yml @@ -19,6 +19,11 @@ jobs: with: python-version: ${{ matrix.python-version }} + - name: Install tox 🧰 + run: | + python -m pip install --upgrade pip + python -m pip install tox + - name: Lint Syntax 🧪🖋 run: tox -e lint @@ -36,6 +41,11 @@ jobs: with: python-version: ${{ matrix.python-version }} + - name: Install tox 🧰 + run: | + python -m pip install --upgrade pip + python -m pip install tox + - name: Test & Coverage 🧪 run: tox -e test @@ -64,6 +74,11 @@ jobs: with: python-version: '3.6' + - name: Install tox 🧰 + run: | + python -m pip install --upgrade pip + python -m pip install tox + - name: Build 🛠 run: tox -e build diff --git a/.gitignore b/.gitignore index bd05746b9..a6be164ca 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ build/ coverage.xml .pytest_cache .tox +*.py,cover # step runner build & runtime src/ploigos_step_runner/version.py diff --git a/tox.ini b/tox.ini index 5ed8fcfcf..fb5e940bb 100644 --- a/tox.ini +++ b/tox.ini @@ -43,7 +43,7 @@ deps = testfixtures mock commands = - python -m pytest --cov + python -m pytest --cov --cov-report=term-missing --cov-report=xml [testenv:report] skip_install = True @@ -53,7 +53,6 @@ commands = coverage report --fail-under=100 [testenv:lint] -skip_install = True deps = pylint flake8