Skip to content

Commit

Permalink
Ploigos rename:
Browse files Browse the repository at this point in the history
- gh-actions - install tox
- tox:lint - need to do install so imports can be found
- tox:test - do both term-missing and xml report
  • Loading branch information
itewk committed Dec 18, 2020
1 parent 3d080ea commit dccd262
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/push-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down Expand Up @@ -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

Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/push-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ build/
coverage.xml
.pytest_cache
.tox
*.py,cover

# step runner build & runtime
src/ploigos_step_runner/version.py
Expand Down
3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -53,7 +53,6 @@ commands =
coverage report --fail-under=100

[testenv:lint]
skip_install = True
deps =
pylint
flake8
Expand Down

0 comments on commit dccd262

Please sign in to comment.