Skip to content

Commit

Permalink
AI cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
tovrstra committed Jun 14, 2024
1 parent 2a6dcf8 commit ac34301
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,23 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: ['3.9', '3.12']
python-version: ['3.9', '3.12']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
python-version: ${{ matrix.python-version }}
- name: Install oldest versions of supported dependencies
if: ${{ matrix.python == '3.9'}}
if: ${{ matrix.python-version == '3.9'}}
# Ensure changes to these dependencies are reflected
# in pyproject.toml and docs/install.rst
run: pip install numpy==1.22 scipy==1.11 attrs==21.3.0
- name: Install development version
run: pip install -e .[dev]
# If some tests are slow against expectations, pytest will abort due to timeout.
- name: Run pytest WITH covarage for fast tests
- name: Run pytest WITH coverage for fast tests
if: ${{ matrix.os == 'ubuntu-latest'}}
run: >
pytest
Expand Down Expand Up @@ -60,8 +60,8 @@ jobs:
-t ${{ secrets.CODECOV_TOKEN }} \
-n 'fast'-${{ github.run_id }} \
-F fast -f coverage.xml
- name: Run pytest WITHOUT covarage for fast tests
- name: Run pytest WITHOUT coverage for fast tests
if: ${{ matrix.os != 'ubuntu-latest'}}
run: pytest -vv -m "not slow" --timeout=60
- name: Run pytest WITHOUT covarage for slow tests
- name: Run pytest WITHOUT coverage for slow tests
run: pytest -vv -m slow
2 changes: 1 addition & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ Github work flow
# Run tests excluding those marked as slow.
pytest -m "not slow"
# Build docs.
# Build the documentation.
(cd docs; make html)
# Finally, if the above steps all pass, run the slow tests.
pytest -m slow
Expand Down

0 comments on commit ac34301

Please sign in to comment.