Skip to content

Commit

Permalink
Exclude daily tests from the conda build (#934)
Browse files Browse the repository at this point in the history
Exclude daily tests from the conda build
  • Loading branch information
ravi-mosaicml committed Apr 20, 2022
1 parent 07aa029 commit 4574dce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ test:
- tests
commands:
- pip install deepspeed>=0.5.5 timm>=0.5.4 # deepspeed is not available on conda, and timm has a conda version conflict
- make test DURATION=all EXTRA_ARGS="-m 'not notebooks and not gpu and not vision'"
- make test-dist DURATION=all WORLD_SIZE=2 EXTRA_ARGS="-m 'not notebooks and not gpu and not vision'"
- make test DURATION=all EXTRA_ARGS="-m 'not notebooks and not gpu and not vision and not daily'"
- make test-dist DURATION=all WORLD_SIZE=2 EXTRA_ARGS="-m 'not notebooks and not gpu and not vision and not daily'"

about:
home: https://www.mosaicml.com
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,14 @@ reportUnusedCoroutine = "error"

# Pytest
[tool.pytest.ini_options]
# By default, do not run gpu or notebook tests
addopts = "--strict-markers -m 'not notebooks and not gpu and not vision'"
# By default, do not run gpu, vision, notebook, or daily tests
addopts = "--strict-markers -m 'not notebooks and not gpu and not vision and not daily'"

# by default, tests should be fast.
# for slower tests, use @pytest.mark.timeout with a higher timeout (specified in seconds)
timeout = 2
markers = [
# !!!!!!!!!!!IMPORTANT!!!!!!!!!: when updating the markers, also make sure to update .ci/Jenkinsfile and meta.yaml
# Tests that require a world_size of two should be annotated with `@pytest.mark.world_size(2)`.
# If not specified, the test will be assumed to have a world-size of one, which is
# equivalent to `@pytest.mark.world_size(1)`
Expand Down

0 comments on commit 4574dce

Please sign in to comment.