Skip to content

Commit 9764d6c

Browse files
committed
Add GH actions workflow to test on Cubed
1 parent 2b0333d commit 9764d6c

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/cubed.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Cubed
2+
3+
on:
4+
push:
5+
pull_request:
6+
# manual trigger
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
# This workflow only runs on the origin org
12+
# if: github.repository_owner == 'sgkit-dev'
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
python-version: ["3.11"]
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
- name: Install deps and sgkit
26+
run: |
27+
python -m pip install --upgrade pip
28+
python -m pip install -r requirements.txt -r requirements-dev.txt
29+
python -m pip install -U git+https://github.com/cubed-dev/cubed.git -U git+https://github.com/cubed-dev/cubed-xarray.git -U git+https://github.com/pydata/xarray.git
30+
31+
- name: Test with pytest
32+
run: |
33+
pytest -v sgkit/tests/test_aggregation.py -k "test_count_call_alleles" --use-cubed

0 commit comments

Comments
 (0)