Skip to content

Commit

Permalink
Install only test deps before running tox (#840)
Browse files Browse the repository at this point in the history
Tox will install the necessary dependencies per environment, so we don't
need to do this beforehand. This should speed up the builds a bit.
  • Loading branch information
RobbeSneyders authored Feb 5, 2024
1 parent 48cd7e0 commit 36d0b2a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
run: |
pip install --upgrade pip
pip install poetry==1.4.0
poetry install --all-extras --with test
poetry install --only test
- name: Test with tox
run: poetry run tox
- name: Coveralls
Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,18 @@ vertex = ["docker", "kfp", "google-cloud-aiplatform"]
sagemaker = ["sagemaker", "boto3"]
docker = ["docker"]

[tool.poetry.group.test]
optional = true

[tool.poetry.group.test.dependencies]
pre-commit = "^3.1.1"
tox = "^4.6.4"
tox-gh-actions = "^3.1.3"
coveralls = "^3.3.1"

[tool.poetry.group.docs]
optional = true

[tool.poetry.group.docs.dependencies]
mkdocs-material = "^9.1.8"
mkdocstrings = { version = "^0.20", extras = ["python"]}
Expand Down

0 comments on commit 36d0b2a

Please sign in to comment.