Skip to content

Commit c26924b

Browse files
rlypre-commit-ci[bot]stephprince
authored
Add workflows to test without dandi reqs (#527)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Steph Prince <[email protected]>
1 parent 4fe561a commit c26924b

File tree

2 files changed

+54
-3
lines changed

2 files changed

+54
-3
lines changed

.github/workflows/streaming-tests.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,29 @@ jobs:
5151
token: ${{ secrets.CODECOV_TOKEN }}
5252
fail_ci_if_error: true
5353
file: ./cli_coverage.xml
54+
55+
build-and-test-no-dandi:
56+
name: Testing using ${{ matrix.os }} with ${{ matrix.python-version }} without dandi dependencies
57+
runs-on: ${{ matrix.os }}
58+
strategy:
59+
fail-fast: false
60+
matrix:
61+
os: ["ubuntu-latest"]
62+
python-version: ["3.12"]
63+
steps:
64+
- uses: actions/checkout@v4
65+
- run: git fetch --prune --unshallow --tags
66+
67+
- name: Setup Python
68+
uses: actions/setup-python@v5
69+
with:
70+
python-version: ${{ matrix.python-version }}
71+
72+
- name: Install pytest
73+
run: pip install pytest
74+
75+
- name: Install package
76+
run: pip install .
77+
78+
- name: Run pytest with coverage
79+
run: pytest -rsx

.github/workflows/testing.yml

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ on:
55
CODECOV_TOKEN:
66
required: true
77

8-
env:
9-
TESTING_FILES_FOLDER_PATH: ./204919/testing_files/
10-
118
jobs:
129
build-and-test:
1310
name: Testing using ${{ matrix.os }} with ${{ matrix.python-version }}
@@ -17,6 +14,8 @@ jobs:
1714
matrix:
1815
os: ["ubuntu-latest", "macos-13", "windows-latest"]
1916
python-version: ["3.9", "3.10", "3.11", "3.12"]
17+
env:
18+
TESTING_FILES_FOLDER_PATH: ./204919/testing_files/
2019
steps:
2120
- uses: actions/checkout@v4
2221
- run: git fetch --prune --unshallow --tags
@@ -46,3 +45,29 @@ jobs:
4645
token: ${{ secrets.CODECOV_TOKEN }}
4746
fail_ci_if_error: true
4847
file: ./coverage.xml
48+
49+
build-and-test-no-dandi:
50+
name: Testing using ${{ matrix.os }} with ${{ matrix.python-version }} without dandi dependencies
51+
runs-on: ${{ matrix.os }}
52+
strategy:
53+
fail-fast: false
54+
matrix:
55+
os: ["ubuntu-latest"]
56+
python-version: ["3.12"]
57+
steps:
58+
- uses: actions/checkout@v4
59+
- run: git fetch --prune --unshallow --tags
60+
61+
- name: Setup Python
62+
uses: actions/setup-python@v5
63+
with:
64+
python-version: ${{ matrix.python-version }}
65+
66+
- name: Install pytest
67+
run: pip install pytest
68+
69+
- name: Install package
70+
run: pip install .
71+
72+
- name: Run pytest with coverage
73+
run: pytest -rsx

0 commit comments

Comments
 (0)