Skip to content

Commit

Permalink
🐛 run some diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
enryH committed Oct 24, 2024
1 parent 9d578d6 commit 50031f2
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 16 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Run unit tests, integration tests, and publish package if tagged
on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]
# pull_request:
# branches: [main, dev]
release:
types: [published]
schedule:
Expand All @@ -27,7 +27,7 @@ jobs:
uses: actions/checkout@v4
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
with:
python-version: ${{ matrix.python-version }}
channel-priority: strict
environment-file: snakemake_env.yml
Expand All @@ -42,21 +42,21 @@ jobs:
conda env export --no-builds
conda env export --no-builds > environment_w_versions.yml
- name: Dry-Run demo workflow (integration test)
run: |
run: |
cd project
snakemake -p -c1 --configfile config/single_dev_dataset/example/config.yaml --use-conda -n
- name: Run demo workflow (integration test)
continue-on-error: true
run: |
run: |
cd project
snakemake -p -c4 -k --configfile config/single_dev_dataset/example/config.yaml --use-conda
- name: Run demo workflow again (in case of installation issues)
continue-on-error: true
run: |
run: |
cd project
snakemake -p -c4 -k --configfile config/single_dev_dataset/example/config.yaml --use-conda
- name: Run demo workflow again (in case of installation issues) - one thread
run: |
run: |
cd project
snakemake -p -c1 --configfile config/single_dev_dataset/example/config.yaml --use-conda
- name: Archive results
Expand Down Expand Up @@ -92,13 +92,13 @@ jobs:

- name: Install pytest
run: pip install pytest pytest-cov

- name: Run pytest
run: pytest .

- name: Install papermill
run: pip install papermill ipykernel

- name: View papermill help message for notebooks (as scripts)
run: |
cd project
Expand All @@ -123,7 +123,7 @@ jobs:

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.8"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: run workflow (v1) with conda envs
on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]
# pull_request:
# branches: [main, dev]
release:
types: [published]
schedule:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/test_pkg_on_colab.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,18 @@ jobs:
- name: Install pimms-learn (from branch) and papermill
if: github.event_name == 'pull_request'
run: |
pip install .
pip install papermill
pip install --user .
pip install papermill
python3 -c "import pandas"
python3 -c "import pimmslearn"
- name: Install pimms-learn (from PyPI) and papermill
if: github.event_name == 'schedule'
run: |
pip install pimms-learn papermill
- name: Run tutorial
run: |
cd project
which papermill
papermill 04_1_train_pimms_models.ipynb 04_1_train_pimms_models_output.ipynb
papermill 04_1_train_pimms_models.ipynb 04_1_train_pimms_models_no_val.ipynb -p sample_splits False
4 changes: 2 additions & 2 deletions .github/workflows/workflow_website.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Build workflow (v2) website on public Alzheimer dataset (for protein groups)
on:
pull_request:
branches: [main, dev]
# pull_request:
# branches: [main, dev]
release:
types: [published]
schedule:
Expand Down

0 comments on commit 50031f2

Please sign in to comment.