Skip to content

Commit

Permalink
Move old scipy tests to separate GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-nance committed Sep 6, 2024
1 parent ed2173e commit e251e90
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,5 @@ jobs:
docker run --rm scispacy flake8 scispacy
docker run --rm scispacy black scispacy --check --line-length 88
docker run --rm scispacy bash scripts/mypy.sh
# Test with newer versions of scipy
docker run --rm scispacy pytest tests/ --cov scispacy --cov-fail-under=20
# Test older version of scipy, since some tests can't run on newer scipy
docker run --rm scispacy pip install scipy<1.11 \
&& pytest tests/ --cov scispacy --cov-fail-under=20
18 changes: 18 additions & 0 deletions .github/workflows/old_scipy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: CI (old scipy)

on:
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Build and test with Docker using an older version of scipy
run: |
docker build --tag scispacy .
docker run --rm scispacy pip install scipy<1.11 \
&& pytest tests/

0 comments on commit e251e90

Please sign in to comment.