Skip to content

Commit

Permalink
ci: update gha
Browse files Browse the repository at this point in the history
  • Loading branch information
maxibor committed Oct 14, 2024
1 parent a5146a0 commit 8049b53
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/sourcepredict_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: sourcepredict_ci

on: [push, pull_request]


jobs:
pydamage_ci:
name: sourcepredict_testing
runs-on: 'ubuntu-latest'
if: "!contains(github.event.head_commit.message, '[skip_ci]')"
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
mamba-version: "*"
channels: conda-forge,bioconda,defaults
channel-priority: true
environment-file: conda_env.yaml
activate-environment: sourcepredict_test
- name: Test with pytest
shell: bash -l {0}
run: |
pip install -e .
pip install pytest
pytest
- name: Check sourcepredict help message
shell: bash -l {0}
run: |
sourcepredict --help
- name: Check sourcepredict on test data
shell: bash -l {0}
run: |
sourcepredict -s data/modern_gut_microbiomes_sources.csv -l data/modern_gut_microbiomes_labels.csv data/test/dog_test_sink_sample.cs

0 comments on commit 8049b53

Please sign in to comment.