remove torch scatter dependency #144
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
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 .[full] | |
- 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 |