Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: remove poetry redundancies (#74) #75

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.