-
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 #48 from RasmussenLab/dev
Scikit-Learn interface
- Loading branch information
Showing
104 changed files
with
3,419 additions
and
38,153 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,30 +4,33 @@ on: | |
branches: [main, dev] | ||
pull_request: | ||
branches: [main, dev] | ||
schedule: | ||
- cron: '0 2 * * 3,6' | ||
jobs: | ||
run-tests: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ${{ matrix.os }} | ||
defaults: | ||
run: | ||
shell: bash -el {0} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ["ubuntu-latest", "macos-latest", "windows-latest"] | ||
os: ["ubuntu-latest", | ||
"macos-13", | ||
# "windows-latest" # rrcovNA cannot be build from source on windows-server | ||
] | ||
python-version: ["3.8"] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: check files | ||
run: | | ||
ls ${{ github.workspace }} | ||
- name: Set up Miniconda | ||
# ! change action https://github.com/mamba-org/setup-micromamba | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
miniforge-variant: Mambaforge | ||
# miniforge-version: latest | ||
use-mamba: true | ||
channel-priority: strict | ||
channel-priority: disabled | ||
python-version: ${{ matrix.python-version }} | ||
environment-file: environment.yml | ||
activate-environment: vaep | ||
|
@@ -46,23 +49,73 @@ jobs: | |
# # currently part of environment | ||
# - name: Install package and install library | ||
# run: | | ||
# pip install pytest | ||
- name: Run Tests on installed package | ||
run: pytest . | ||
# pip install pytest pytest-cov | ||
- name: Run Unit tests on installed package | ||
run: | | ||
pytest . | ||
- name: View papermill help message for notebooks (as scripts) | ||
run: | | ||
cd project | ||
papermill 01_0_split_data.ipynb --help-notebook | ||
papermill 01_1_train_VAE.ipynb --help-notebook | ||
papermill 01_1_train_DAE.ipynb --help-notebook | ||
papermill 01_1_train_CF.ipynb --help-notebook | ||
- name: Run demo workflow | ||
- name: Run demo workflow (integration test) | ||
run: | | ||
cd project | ||
snakemake -p -c1 --configfile config/single_dev_dataset/example/config.yaml -n | ||
snakemake -p -c1 --configfile config/single_dev_dataset/example/config.yaml | ||
snakemake -p -c2 -k --configfile config/single_dev_dataset/example/config.yaml | ||
- name: Archive results | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: example-workflow-results-${{ matrix.os }} | ||
path: project/runs/example/01_2_performance_plots.html | ||
path: project/runs/example/01_2_performance_plots.html | ||
|
||
test_pip_pkg_install: | ||
runs-on: ${{ matrix.os }} | ||
name: test-pip-installation | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ["ubuntu-latest", "macos-latest", "windows-latest"] | ||
python-version: ["3.8"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: install pimms | ||
run: python -m pip install . | ||
|
||
- name: Install pytest | ||
run: python -m pip install pytest pytest-cov | ||
|
||
- name: Run pytest | ||
run: pytest . | ||
|
||
|
||
publish: | ||
name: Publish package | ||
if: startsWith(github.event.ref, 'refs/tags/v') | ||
needs: | ||
- run-tests | ||
- test_pip_pkg_install | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
python-version: "3.8" | ||
- name: Install twine and build | ||
run: python -m pip install --upgrade twine build | ||
- name: Build | ||
run: python -m build | ||
|
||
- uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
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 |
---|---|---|
|
@@ -44,4 +44,5 @@ workflows/maxquant/out/ | |
|
||
# builds | ||
docs/_* | ||
docs/source | ||
docs/reference | ||
build |
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,35 @@ | ||
# .readthedocs.yaml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Set the OS, Python version and other tools you might need | ||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.8" | ||
# You can also specify other tool versions: | ||
# nodejs: "19" | ||
# rust: "1.64" | ||
# golang: "1.19" | ||
|
||
# Build documentation in the "docs/" directory with Sphinx | ||
sphinx: | ||
configuration: docs/conf.py | ||
|
||
# Optionally build your docs in additional formats such as PDF and ePub | ||
# formats: | ||
# - epub | ||
|
||
# Optional but recommended, declare the Python requirements required | ||
# to build your documentation | ||
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html | ||
python: | ||
install: | ||
- method: pip | ||
path: . | ||
extra_requirements: | ||
- docs |
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.