Skip to content

Commit

Permalink
temporarily suppress CLI check on first release, since bg-workflows n…
Browse files Browse the repository at this point in the history
…eeds to pick up the new release first
  • Loading branch information
willGraham01 committed Jan 3, 2024
1 parent d932ce5 commit b3a76a6
Showing 1 changed file with 31 additions and 30 deletions.
61 changes: 31 additions & 30 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,44 +65,45 @@ jobs:
python-version: ${{ matrix.python-version }}
use-xvfb: true

# Run brainglobe-workflows cellfinder-CLI tests to check for
# Run brainglobe-workflows brainmapper-CLI tests to check for
# breakages
test_cellfinder_cli:
needs: [linting, manifest]
name: Run brainmapper tests to check for breakages
runs-on: ubuntu-latest
steps:
- name: Cache tensorflow model
uses: actions/cache@v3
with:
path: "~/.cellfinder"
key: models-${{ hashFiles('~/.cellfinder/**') }}
# test_brainmapper_cli:
# needs: [linting, manifest]
# name: Run brainmapper tests to check for breakages
# runs-on: ubuntu-latest
# steps:
# - name: Cache tensorflow model
# uses: actions/cache@v3
# with:
# path: "~/.cellfinder"
# key: models-${{ hashFiles('~/.cellfinder/**') }}

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

- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
# - name: Set up Python 3.10
# uses: actions/setup-python@v3
# with:
# python-version: "3.10"

- name: Install test dependencies
run: |
python -m pip install --upgrade pip wheel
# Install latest SHA on this brainglobe-workflows branch
python -m pip install git+$GITHUB_SERVER_URL/$GITHUB_REPOSITORY@$GITHUB_SHA
# Install checked out copy of brainglobe-workflows
python -m pip install .[dev]
# - name: Install test dependencies
# run: |
# python -m pip install --upgrade pip wheel
# # Install latest SHA on this brainglobe-workflows branch
# python -m pip install git+$GITHUB_SERVER_URL/$GITHUB_REPOSITORY@$GITHUB_SHA
# # Install checked out copy of brainglobe-workflows
# python -m pip install .[dev]

- name: Run cellfinder CLI test of brainglobe-workflows
run: |
python -m pytest --color=yes -v tests/brainmapper
# - name: Run brainmapper tests in brainglobe-workflows
# run: |
# python -m pytest --color=yes -v tests/brainmapper

build_sdist_wheel:
name: Build source distribution and wheel
needs: [test, test_cellfinder_cli]
# needs: [test, test_brainmapper_cli]
needs: [test]
if: github.event_name == 'push' && github.ref_type == 'tag'
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit b3a76a6

Please sign in to comment.