Skip to content

Commit

Permalink
Merge pull request #75 from bhosale2/74_reduce_poetry_redundancy
Browse files Browse the repository at this point in the history
Refactor: remove poetry redundancies (#74)
  • Loading branch information
skim0119 authored Jul 20, 2022
2 parents 160697c + 3a61b07 commit b5fdab0
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 43 deletions.
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ exclude_lines =
# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == __main__:
fail_under = 40
show_missing = true

[run]
branch = True
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/ci-sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

- name: Poetry Setup
- name: Setup Poetry
uses: Gr1N/setup-poetry@v7
with:
poetry-preview: false
- name: Poetry install docs dependencies
run: |
apt-get update -y && apt-get install curl
make poetry-download
poetry --version
poetry config virtualenvs.in-project false
poetry config virtualenvs.create false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
- name: Test MiV-OS using pytest
if: startsWith(runner.os, 'macOS')
run: |
poetry run pytest -c pyproject.toml --cov=miv --cov-report=xml
make test_ci
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ formatting: codestyle
#* Linting
.PHONY: test
test:
PYTHONPATH=$(PYTHONPATH) poetry run pytest -c pyproject.toml --cov-report=html --cov=miv tests/
poetry run pytest -c pyproject.toml --cov=miv

.PHONY: coverage check
coverage:
PYTHONPATH=$(PYTHONPATH) poetry run pytest -c pyproject.toml --cov=miv tests/
.PHONY: test_ci
test_ci:
poetry run pytest -c pyproject.toml --cov=miv --cov-report=xml

.PHONY: check-codestyle
check-codestyle:
Expand Down
13 changes: 0 additions & 13 deletions docs/requirements.txt

This file was deleted.

13 changes: 0 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -168,16 +168,3 @@ addopts = [
# "--doctest-modules", TODO: Try to include pytest.doctest
# "--doctest-continue-on-failure",
]

[tool.coverage.run]
source = ["tests"]

[coverage.paths]
source = "miv"

[coverage.run]
branch = true

[coverage.report]
fail_under = 50
show_missing = true
8 changes: 0 additions & 8 deletions tests/requirements.txt

This file was deleted.

0 comments on commit b5fdab0

Please sign in to comment.