-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add GHA workflows for basic CI (PR 4 of N) (#7)
* add GHA workflows; remove temp exclusion from pre-commit config * GHA tweak, attempt to trigger PR runs --------- Co-authored-by: Ryan Williams <[email protected]>
- Loading branch information
1 parent
30937b0
commit c0f32a1
Showing
3 changed files
with
102 additions
and
6 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,46 @@ | ||
name: python-tiledbsoma-ml past tiledbsoma compat # Latest tiledbsoma version covered by another workflow | ||
|
||
on: | ||
pull_request: | ||
branches: ["*"] | ||
paths-ignore: | ||
- "scripts/**" | ||
- "notebooks/**" | ||
push: | ||
branches: [main] | ||
paths-ignore: | ||
- "scripts/**" | ||
- "notebooks/**" | ||
|
||
jobs: | ||
unit_tests: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ["ubuntu-latest"] # could add 'macos-latest', but the matrix is already huge... | ||
python-version: ["3.9", "3.10", "3.11"] # TODO: add 3.12 when tiledbsoma releases wheels for it. | ||
pkg-version: | ||
- "tiledbsoma~=1.9.0 'numpy<2.0.0'" | ||
- "tiledbsoma~=1.10.0 'numpy<2.0.0'" | ||
- "tiledbsoma~=1.11.0" | ||
- "tiledbsoma~=1.12.0" | ||
- "tiledbsoma~=1.13.0" | ||
- "tiledbsoma~=1.14.0" | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: pip | ||
|
||
- name: Install prereqs | ||
run: | | ||
pip install --upgrade pip pytest setuptools | ||
pip install ${{ matrix.pkg-version }} . | ||
- name: Run tests | ||
run: pytest -v tests |
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