Test the CI #4
Workflow file for this run
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 | |
on: [push, pull_request] | |
defaults: | |
run: | |
shell: bash -l {0} | |
jobs: | |
test-linux: | |
name: Test on Linux | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: | |
- "3.8" | |
- "3.9" | |
- "3.10" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use python ${{ matrix.python-version }} | |
run: echo -e "\n - python = ${{ matrix.python-version }}" >> ./HiCMatrix_env_ci.yml | |
- uses: mamba-org/setup-micromamba@main | |
with: | |
environment-file: ./HiCMatrix_env_ci.yml | |
cache-downloads: true | |
environment-name: HiCMatrix_env_ci | |
- name: pip install | |
run: | | |
python3 -m pip install . | |
shell: micromamba-shell {0} | |
- name: Test HiCMatrix | |
run: | | |
py.test hicmatrix/test/ --capture=sys | |
shell: micromamba-shell {0} | |
test-osx: | |
name: Test on OSX | |
runs-on: macOS-latest | |
strategy: | |
matrix: | |
python-version: | |
- "3.8" | |
- "3.9" | |
- "3.10" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use python ${{ matrix.python-version }} | |
run: echo -e "\n - python = ${{ matrix.python-version }}" >> ./HiCMatrix_env_ci.yml | |
- uses: mamba-org/setup-micromamba@main | |
with: | |
environment-file: ./HiCMatrix_env_ci.yml | |
cache-downloads: true | |
environment-name: HiCMatrix_env_ci | |
- name: pip install | |
run: | | |
python3 -m pip install . | |
shell: micromamba-shell {0} | |
- name: Test HiCMatrix | |
run: | | |
py.test hicmatrix/test/ --capture=sys | |
shell: micromamba-shell {0} |