Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workflows to test without dandi reqs #527

Merged
merged 6 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/streaming-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,29 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
file: ./cli_coverage.xml

build-and-test-no-dandi:
name: Testing using ${{ matrix.os }} with ${{ matrix.python-version }} without dandi dependencies
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
- run: git fetch --prune --unshallow --tags

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install pytest
run: pip install pytest

- name: Install package
run: pip install .

- name: Run pytest with coverage
run: pytest -rsx
31 changes: 28 additions & 3 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on:
CODECOV_TOKEN:
required: true

env:
TESTING_FILES_FOLDER_PATH: ./204919/testing_files/

jobs:
build-and-test:
name: Testing using ${{ matrix.os }} with ${{ matrix.python-version }}
Expand All @@ -17,6 +14,8 @@ jobs:
matrix:
os: ["ubuntu-latest", "macos-13", "windows-latest"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
env:
TESTING_FILES_FOLDER_PATH: ./204919/testing_files/
steps:
- uses: actions/checkout@v4
- run: git fetch --prune --unshallow --tags
Expand Down Expand Up @@ -46,3 +45,29 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
file: ./coverage.xml

build-and-test-no-dandi:
name: Testing using ${{ matrix.os }} with ${{ matrix.python-version }} without dandi dependencies
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
- run: git fetch --prune --unshallow --tags

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install pytest
run: pip install pytest

- name: Install package
run: pip install .

- name: Run pytest with coverage
run: pytest -rsx
Loading