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

[MNT] Use pip instead of poetry in CI #82

Merged
merged 5 commits into from
Jul 4, 2024
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
15 changes: 4 additions & 11 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,16 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -

- name: Configure Poetry
run: |
echo "$HOME/.local/bin" >> $GITHUB_PATH
poetry config virtualenvs.create false # Avoids creating an additional virtual environment

- name: Install dependencies
run: poetry install --no-interaction --all-extras
run: |
python -m pip install --upgrade pip
pip install ".[dev]"

- name: Set PYTHONPATH
run: echo "PYTHONPATH=$GITHUB_WORKSPACE/src" >> $GITHUB_ENV

- name: Test with pytest
run: poetry run pytest --cov=prophetverse --cov-report=xml -m "not smoke"
run: python -m pytest --cov=prophetverse --cov-report=xml -m "not smoke"

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.5.0
Expand Down
59 changes: 40 additions & 19 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,48 @@ sktime = ">=0.30.0"
numpyro = ">=0.13.2"
optax = ">=0.2"
graphviz = "^0.20.3"
mkdocstrings = {extras = ["python"], version = "^0.25.1"}


[tool.poetry.group.dev.dependencies]
ipykernel = "^6.26.0"
pytest = "^8.0.0"
sphinx = "^7.2.6"
matplotlib = "^3.8.2"
mkdocs = "^1.5.3"
mkdocstrings-python = "^1.9.0"
mkdocs-jupyter = "^0.24.6"
pymdown-extensions = "^10.7.1"
mkdocs-material = "^9.5.14"
pytest-cov = "^5.0.0"
pre-commit = "^3.7.1"
commitlint = "^1.0.0"
isort = "^5.13.2"
black = "^24.4.2"
pydocstyle = "^6.3.0"
mypy = "^1.10.0"
pylint = "^3.2.2"
ipykernel = { version = ">=6.26.0,<7.0.0", optional = true }
pytest = { version = ">=8.0.0,<9.0.0", optional = true }
sphinx = { version = ">=7.2.6,<8.0.0", optional = true }
matplotlib = { version = ">=3.8.2,<4.0.0", optional = true }
mkdocs = { version = ">=1.5.3,<2.0.0", optional = true }
mkdocstrings-python = { version = ">=1.9.0,<2.0.0", optional = true }
mkdocs-jupyter = { version = ">=0.24.6,<0.25.0", optional = true }
pymdown-extensions = { version = ">=10.7.1,<11.0.0", optional = true }
mkdocs-material = { version = ">=9.5.14,<10.0.0", optional = true }
pytest-cov = { version = ">=5.0.0,<6.0.0", optional = true }
pre-commit = { version = ">=3.7.1,<4.0.0", optional = true }
commitlint = { version = ">=1.0.0,<2.0.0", optional = true }
isort = { version = ">=5.13.2,<6.0.0", optional = true }
black = { version = ">=24.4.2,<25.0.0", optional = true }
pydocstyle = { version = ">=6.3.0,<7.0.0", optional = true }
mypy = { version = ">=1.10.0,<2.0.0", optional = true }
pylint = { version = ">=3.2.2,<4.0.0", optional = true }
mkdocstrings = { version = "^0.25.1", optional = true }

[tool.poetry.extras]
dev = [
"ipykernel",
"pytest",
"sphinx",
"matplotlib",
"mkdocs",
"mkdocstrings-python",
"mkdocs-jupyter",
"pymdown-extensions",
"mkdocs-material",
"pytest-cov",
"pre-commit",
"commitlint",
"isort",
"black",
"pydocstyle",
"mypy",
"pylint",
"mkdocstrings"
]

[tool.pytest.ini_options]
markers = [
Expand Down