-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* try to update dandi test * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update dandi_dev.yml * suppress other tests to save resources * debug * suppress other tests to save resources * fix concurrency * try swapping install pattern * Update dandi-dev.yml * Update dandi-dev.yml * Update dandi-dev.yml * try centralizing action * fix syntax * include latest release * include latest release * add pin to release as well * fix * release others * send to all --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: CodyCBakerPhD <[email protected]>
- Loading branch information
1 parent
27e4d25
commit d55a34c
Showing
7 changed files
with
84 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Test against DANDI dev branch - all tests, including live services | ||
on: workflow_call | ||
|
||
jobs: | ||
build-and-test: | ||
name: Testing against current DANDI release and dev branch | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
|
||
steps: | ||
- name: Checkout local branch of source repository | ||
uses: actions/checkout@v4 | ||
- run: git fetch --prune --unshallow --tags | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
|
||
- name: Test against DANDI dev | ||
run: | | ||
pip install virtualenv | ||
virtualenv --system-site-packages --python=python3 venvs/dandi_dev_tests | ||
source venvs/dandi_dev_tests/bin/activate | ||
pip install -e .[dandi] | ||
cd .. | ||
git clone https://github.com/dandi/dandi-cli | ||
cd dandi-cli | ||
pip install -e .[test] | ||
pip install hdmf==3.14.3 # temporary: https://github.com/dandi/dandi-cli/issues/1494 | ||
pytest -vv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Test against DANDI dev branch - no network | ||
on: workflow_call | ||
|
||
env: | ||
DANDI_TESTS_NONETWORK: "1" | ||
|
||
jobs: | ||
build-and-test: | ||
name: Testing against current DANDI release and dev branch | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
|
||
steps: | ||
- name: Checkout local branch of source repository | ||
uses: actions/checkout@v4 | ||
- run: git fetch --prune --unshallow --tags | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
|
||
- name: Test local branch of NWB Inspector against DANDI dev branch | ||
run: | | ||
pip install virtualenv | ||
virtualenv --system-site-packages --python=python3 venvs/dandi_dev_tests | ||
source venvs/dandi_dev_tests/bin/activate | ||
pip install -e .[dandi] | ||
cd .. | ||
git clone https://github.com/dandi/dandi-cli | ||
cd dandi-cli | ||
pip install -e .[test] | ||
pip install hdmf==3.14.3 # temporary: https://github.com/dandi/dandi-cli/issues/1494 | ||
pytest -rsx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,12 @@ name: Deploy tests | |
on: | ||
pull_request: | ||
|
||
jobs: | ||
cancel-previous-runs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
|
||
jobs: | ||
assess-file-changes: | ||
uses: catalystneuro/neuroconv/.github/workflows/assess-file-changes.yml@main | ||
|
||
|
@@ -58,17 +57,17 @@ jobs: | |
test-dandi-latest: | ||
needs: assess-file-changes | ||
if: ${{ needs.assess-file-changes.outputs.SOURCE_CHANGED == 'true' }} | ||
uses: ./.github/workflows/dandi_release.yml | ||
uses: ./.github/workflows/dandi-release.yml | ||
|
||
test-dandi-dev: | ||
needs: assess-file-changes | ||
if: ${{ needs.assess-file-changes.outputs.SOURCE_CHANGED == 'true' }} | ||
uses: ./.github/workflows/dandi_dev.yml | ||
uses: ./.github/workflows/dandi-dev.yml | ||
|
||
test-dandi-dev-live: | ||
needs: assess-file-changes | ||
if: ${{ needs.assess-file-changes.outputs.SOURCE_CHANGED == 'true' }} | ||
uses: ./.github/workflows/dandi_dev_live_service.yml | ||
uses: ./.github/workflows/dandi-dev-live-services.yml | ||
|
||
check-final-status: | ||
name: All tests passing | ||
|