Skip to content

Commit

Permalink
ci: Skip doctest for 'Minimum supported dependencies' workflow (#1589)
Browse files Browse the repository at this point in the history
* Run pytest explicitly over the tests/ directory only to avoid in the 'Minimum supported dependencies' workflow to avoid running doctest on the docstring examples
   - The docstring examples use the latest dependencies which might have different text output than older releases. So focus only on the API tests
  • Loading branch information
matthewfeickert authored Sep 5, 2021
1 parent 173c3c7 commit 1f8f7a0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/lower-bound-requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,21 @@ jobs:

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies and force lowest bound
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip --no-cache-dir --quiet install --requirement lower-bound-requirements.txt
python -m pip --no-cache-dir --quiet install --editable .[test]
python -m pip install --requirement lower-bound-requirements.txt
python -m pip list
- name: Test with pytest
run: |
python -m pytest -r sx --ignore tests/benchmarks/ --ignore tests/contrib --ignore tests/test_notebooks.py
# Run on tests/ to skip doctests of src given examples are for latest APIs
python -m pytest -r sx --ignore tests/benchmarks/ --ignore tests/contrib --ignore tests/test_notebooks.py tests/

0 comments on commit 1f8f7a0

Please sign in to comment.