Merge branch 'main' of github.com:JGIBristol/zebrafish_jaw_segmentation #275
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: UT/IT | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
# NB I kept having mamba issues so this is how i'm doing it | |
- name: Set up environment | |
run: | | |
./install_env.sh | |
source "${HOME}/fishconda/etc/profile.d/conda.sh" | |
conda update -n base -c conda-forge conda | |
- name: Run Unit Tests | |
run: | | |
source "${HOME}/fishconda/etc/profile.d/conda.sh" | |
conda activate zebrafish_jaw_segmentation | |
python -m pytest fishjaw/test/test_unit | |
- name: Run Integration Tests | |
run: | | |
source "${HOME}/fishconda/etc/profile.d/conda.sh" | |
conda activate zebrafish_jaw_segmentation | |
python -m pytest fishjaw/test/test_integration |