Skip to content

Commit

Permalink
test on 3.12; prune deps and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
skshetry committed Mar 1, 2024
1 parent fd2ca01 commit fc46413
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/benchmarks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
- name: run benchmarks
timeout-minutes: 180
run: pytest --dist no --benchmark-save benchmarks-azure --benchmark-group-by func --dvc-revs main,2.45.0,2.41.1,2.40.0,2.39.0,2.18.1,2.11.0 --size ${DATASET} dvc_azure/tests/benchmarks.py --dvc-install-deps azure
run: pytest --dist no --benchmark-save benchmarks-azure --benchmark-group-by func --dvc-revs main,2.45.0,2.41.1,2.40.0,2.39.0,2.18.1,2.11.0 --dataset ${DATASET} dvc_azure/tests/benchmarks.py --dvc-install-deps azure

- name: upload raw results
uses: actions/upload-artifact@v3
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,13 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-latest, macos-latest]
# NOTE: 3.12 is temporarily disabled waiting for
# https://github.com/fsspec/universal_pathlib/pull/152
pyv: ["3.9", "3.10", "3.11"]
pyv: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v4
with:
Expand Down
4 changes: 4 additions & 0 deletions dvc_azure/tests/benchmarks.py
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# pylint: disable=unused-import

from dvc.testing.benchmarks.cli.stories.use_cases.test_sharing import (
test_sharing as test_sharing_azure, # noqa: F401
)
34 changes: 9 additions & 25 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,32 +34,16 @@ dependencies = [
]

[project.optional-dependencies]
dev = [
"dvc-azure[tests]",
"mypy==1.8.0",
]
tests = [
"wheel==0.37.0",
"dvc[testing]",
# Test requirements
"pytest==6.2.5",
"pytest-cov==3.0.0",
"pytest-xdist==2.4.0",
"pytest-mock==3.6.1",
"pytest-lazy-fixture==0.6.3",
"pytest-servers[azure]>=0.3.0",
"flaky==3.7.0",
"mock==4.0.3",
"wget==3.2",
"filelock==3.3.2",
"xmltodict==0.12.0",
# required by collective.checkdocs
"Pygments==2.10.0",
"collective.checkdocs==0.2",
"pydocstyle==6.1.1",
# type-checking
"mypy==0.981",
"types-requests==2.25.11",
"types-tabulate==0.8.3",
"types-toml==0.10.1",
# optional dependencies
'pywin32>=225; sys_platform == "win32"',
"pytest>=7,<9",
"pytest-cov>=4.1.0",
"pytest-xdist>=3.2",
"pytest-servers[azure]>=0.4.0",
]

[project.urls]
Expand All @@ -68,7 +52,7 @@ Source = "https://github.com/iterative/dvc-azure"

[tool.pytest.ini_options]
log_level = "debug"
addopts = "-ra"
addopts = "-ra -pdvc.testing.plugin"
markers = [
"needs_internet: Might need network access for the tests",
]
Expand Down

0 comments on commit fc46413

Please sign in to comment.