Rescaling #414
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
build: | |
runs-on: "ubuntu-latest" | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
path: dartsort | |
- name: Setup Mamba | |
uses: mamba-org/setup-micromamba@v1 | |
with: | |
environment-file: dartsort/environment.yml | |
init-shell: bash | |
- name: Install Torch (CPU) | |
run: | | |
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu | |
- name: Install Pip Requirements | |
run: | | |
pip install -r dartsort/requirements.txt | |
- name: Get DREDge | |
uses: actions/checkout@v4 | |
with: | |
repository: evarol/dredge | |
path: dredge | |
- name: Install DREDge | |
run: | | |
pip install dredge/ | |
- name: Install DARTsort | |
run: | | |
pip install dartsort/ | |
- name: Pytest | |
run: | | |
pytest dartsort/tests/ |