Skip to content

Commit

Permalink
Direct cellfinder-CLI to only run cellfinder-related tests from workf…
Browse files Browse the repository at this point in the history
…lows
  • Loading branch information
willGraham01 committed Nov 27, 2023
1 parent 97f9e0d commit f9f957e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ jobs:
python-version: ${{ matrix.python-version }}
use-xvfb: true

# Run cellfinder tests to make sure cellfinder is still compatible
# with cellfinder-core
test_cellfinder:
# Run brainglobe-workflows cellfinder-CLI tests to check for
# breakages
test_cellfinder_cli:
needs: [linting, manifest]
name: Run cellfinder tests
name: Run cellfinder CLI to check for breakages
runs-on: ubuntu-latest
steps:
- name: Cache tensorflow model
Expand All @@ -78,10 +78,10 @@ jobs:
path: "~/.cellfinder"
key: models-${{ hashFiles('~/.cellfinder/**') }}

- name: Checkout cellfinder
- name: Checkout brainglobe-workflows
uses: actions/checkout@v3
with:
repository: 'brainglobe/cellfinder'
repository: 'brainglobe/brainglobe-workflows'

- name: Set up Python 3.10
uses: actions/setup-python@v3
Expand All @@ -91,18 +91,18 @@ jobs:
- name: Install test dependencies
run: |
python -m pip install --upgrade pip wheel
# Install latest SHA on this cellfinder-core branch
# Install latest SHA on this cellfinder branch
python -m pip install git+$GITHUB_SERVER_URL/$GITHUB_REPOSITORY@$GITHUB_SHA
# Install checked out copy of cellfinder
# Install checked out copy of brainglobe-workflows
python -m pip install .[dev]
- name: Run cellfinder tests
- name: Run cellfinder CLI test from brainglobe-workflows
run: |
python -m pytest --color=yes -v
python -m pytest --color=yes -v tests/cellfinder
build_sdist_wheel:
name: Build source distribution and wheel
needs: [test, test_cellfinder]
needs: [test, test_cellfinder_cli]
if: github.event_name == 'push' && github.ref_type == 'tag'
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit f9f957e

Please sign in to comment.