-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from RasmussenLab/dev
✨ allow more recent Python versions - test workflows more extensively and improve documentation
- Loading branch information
Showing
79 changed files
with
5,299 additions
and
2,259 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: run workflow with conda envs | ||
on: | ||
push: | ||
branches: [main, dev] | ||
pull_request: | ||
branches: [main, dev] | ||
release: | ||
# schedule: | ||
# - cron: '0 2 * * 3,6' | ||
jobs: | ||
run-integration-tests-with-conda-install: | ||
runs-on: ${{ matrix.os }} | ||
defaults: | ||
run: | ||
shell: bash -el {0} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ | ||
"ubuntu-latest", | ||
"macos-13", | ||
# "windows-latest" # rrcovNA cannot be build from source on windows-server | ||
] | ||
python-version: ["3.10"] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up Miniconda | ||
# ! change action https://github.com/mamba-org/setup-micromamba | ||
uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
miniforge-variant: Mambaforge | ||
use-mamba: true | ||
channel-priority: disabled | ||
python-version: ${{ matrix.python-version }} | ||
environment-file: snakemake_env.yml | ||
activate-environment: snakemake | ||
auto-activate-base: true | ||
- name: inspect-conda-environment | ||
run: | | ||
conda info | ||
conda list | ||
- name: Dry-run workflow | ||
run: | | ||
cd project | ||
snakemake -p -c1 --configfile config/single_dev_dataset/example/config.yaml -n --use-conda | ||
- name: Run demo workflow (integration test) | ||
continue-on-error: true | ||
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) | ||
run: | | ||
cd project | ||
snakemake -p -c1 -k --configfile config/single_dev_dataset/example/config.yaml --use-conda |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Test that tutorial runs on latest colab image | ||
|
||
on: | ||
push: | ||
branches: [dev] | ||
pull_request: | ||
branches: [main, dev] | ||
schedule: | ||
- cron: '0 2 3 * *' | ||
|
||
jobs: | ||
test-tutorial-on-colab: | ||
name: Test tutorial on latest colab image | ||
runs-on: ubuntu-latest-4core # increase disk space | ||
# https://console.cloud.google.com/artifacts/docker/colab-images/europe/public/runtime | ||
container: | ||
image: europe-docker.pkg.dev/colab-images/public/runtime:latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install pimms-learn and papermill | ||
run: | | ||
python3 -m pip install pimms-learn papermill | ||
- name: Run tutorial | ||
run: | | ||
cd project | ||
papermill 04_1_train_pimms_models.ipynb 04_1_train_pimms_models_output.ipynb |
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
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
Oops, something went wrong.