-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 1.05 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: test package
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
on:
push:
branches:
- main
- devel
permissions:
contents: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.9
cache: 'pip'
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- run: pip install torch==2.3.0 # because torch_scatter contains import torch in the setup.py, we have to install torch first
- run: pip install torch-scatter -f https://data.pyg.org/whl/torch-2.3.0+cpu.html # it seems a wheel is necessary to install torch-scatter
- name: regular install
run: pip install .
- name: attempt import
run: python -c "import chromatinhd"
- name: test install
run: pip install -e .[test]
# - uses: jpetrucciani/ruff-check@main
- name: test
run: pytest
# - run: mkdocs gh-deploy --force