Skip to content

Commit b136b94

Browse files
committed
First commit
0 parents  commit b136b94

File tree

183 files changed

+55769
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

183 files changed

+55769
-0
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
## What does this PR do?
2+
3+
<!--
4+
Please include a summary of the change and which issue is fixed.
5+
Please also include relevant motivation and context.
6+
List any dependencies that are required for this change.
7+
List all the breaking changes introduced by this pull request.
8+
-->
9+
10+
Fixes #\<issue_number>
11+
12+
## Before submitting
13+
14+
- [ ] Did you make sure **title is self-explanatory** and **the description concisely explains the PR**?
15+
- [ ] Did you make sure your **PR does only one thing**, instead of bundling different changes together?
16+
- [ ] Did you list all the **breaking changes** introduced by this pull request?
17+
- [ ] Did you **run pre-commit hooks** with `pre-commit run -a` command?
18+
19+
## Did you have fun?
20+
21+
Make sure you had fun coding 🙃

.github/codecov.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
coverage:
2+
status:
3+
# measures overall project coverage
4+
project:
5+
default:
6+
threshold: 100% # how much decrease in coverage is needed to not consider success
7+
8+
# measures PR or single commit coverage
9+
patch:
10+
default:
11+
threshold: 100% # how much decrease in coverage is needed to not consider success
12+
13+
14+
# project: off
15+
# patch: off

.github/dependabot.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "pip" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "daily"
12+
ignore:
13+
- dependency-name: "pytorch-lightning"
14+
update-types: ["version-update:semver-patch"]
15+
- dependency-name: "torchmetrics"
16+
update-types: ["version-update:semver-patch"]

.github/documentation.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: documentation
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
permissions:
6+
contents: write
7+
8+
jobs:
9+
docs:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-python@v5
14+
with:
15+
python-version: "3.9"
16+
- name: Setup miniconda
17+
uses: conda-incubator/setup-miniconda@v3
18+
with:
19+
miniforge-variant: Mambaforge
20+
python-version: ${{ matrix.python-version }}
21+
auto-update-conda: true
22+
use-mamba: true
23+
auto-activate-base: false
24+
activate-environment: "MULTICOM_ligand-Documentation"
25+
environment-file: docs/.docs.environment.yaml
26+
- name: Install dependencies
27+
run: |
28+
$CONDA/envs/MULTICOM_ligand-Documentation/bin/pip install -e .
29+
- name: Sphinx build
30+
run: |
31+
rm -rf docs/build/ && $CONDA/envs/MULTICOM_ligand-Documentation/bin/sphinx-build docs/source/ docs/build/
32+
- name: Deploy to GitHub Pages
33+
uses: peaceiris/actions-gh-pages@v4
34+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
35+
with:
36+
publish_branch: gh-pages
37+
github_token: ${{ secrets.GITHUB_TOKEN }}
38+
publish_dir: docs/build/
39+
force_orphan: true

.github/release-drafter.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name-template: "v$RESOLVED_VERSION"
2+
tag-template: "v$RESOLVED_VERSION"
3+
4+
categories:
5+
- title: "🚀 Features"
6+
labels:
7+
- "feature"
8+
- "enhancement"
9+
- title: "🐛 Bug Fixes"
10+
labels:
11+
- "fix"
12+
- "bugfix"
13+
- "bug"
14+
- title: "🧹 Maintenance"
15+
labels:
16+
- "maintenance"
17+
- "dependencies"
18+
- "refactoring"
19+
- "cosmetic"
20+
- "chore"
21+
- title: "📝️ Documentation"
22+
labels:
23+
- "documentation"
24+
- "docs"
25+
26+
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
27+
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions
28+
29+
version-resolver:
30+
major:
31+
labels:
32+
- "major"
33+
minor:
34+
labels:
35+
- "minor"
36+
patch:
37+
labels:
38+
- "patch"
39+
default: patch
40+
41+
template: |
42+
## Changes
43+
44+
$CHANGES
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Changelog Enforcer
2+
3+
on: # yamllint disable-line rule:truthy
4+
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
6+
7+
jobs:
8+
changelog:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: dangoslen/changelog-enforcer@v3
14+
with:
15+
skipLabels: "skip-changelog"
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Same as `code-quality-pr.yaml` but triggered on commit to main branch
2+
# and runs on all files (instead of only the changed ones)
3+
4+
name: Code Quality Main
5+
6+
on:
7+
push:
8+
branches: [main]
9+
10+
jobs:
11+
code-quality:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: "3.10"
22+
23+
- name: Run pre-commits
24+
uses: pre-commit/[email protected]
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This workflow finds which files were changed, prints them,
2+
# and runs `pre-commit` on those files.
3+
4+
# Inspired by the sktime library:
5+
# https://github.com/alan-turing-institute/sktime/blob/main/.github/workflows/test.yml
6+
7+
name: Code Quality PR
8+
9+
on:
10+
pull_request:
11+
branches: [main, "release/*", "dev"]
12+
13+
jobs:
14+
code-quality:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Set up Python
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: "3.10"
25+
26+
- name: Find modified files
27+
id: file_changes
28+
uses: trilom/[email protected]
29+
with:
30+
output: " "
31+
32+
- name: List modified files
33+
run: echo '${{ steps.file_changes.outputs.files}}'
34+
35+
- name: Run pre-commits
36+
uses: pre-commit/[email protected]
37+
with:
38+
extra_args: --files ${{ steps.file_changes.outputs.files}}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: documentation
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
permissions:
6+
contents: write
7+
8+
jobs:
9+
docs:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-python@v5
14+
with:
15+
python-version: "3.10"
16+
- name: Setup miniconda
17+
uses: conda-incubator/setup-miniconda@v3
18+
with:
19+
miniforge-variant: Mambaforge
20+
python-version: ${{ matrix.python-version }}
21+
auto-update-conda: true
22+
use-mamba: true
23+
auto-activate-base: false
24+
activate-environment: "MULTICOM_ligand-Documentation"
25+
environment-file: docs/.docs.environment.yaml
26+
- name: Install dependencies
27+
run: |
28+
$CONDA/envs/MULTICOM_ligand-Documentation/bin/pip install -e .
29+
- name: Sphinx build
30+
run: |
31+
rm -rf docs/build/ && $CONDA/envs/MULTICOM_ligand-Documentation/bin/sphinx-build docs/source/ docs/build/
32+
- name: Deploy to GitHub Pages
33+
uses: peaceiris/actions-gh-pages@v4
34+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
35+
with:
36+
publish_branch: gh-pages
37+
github_token: ${{ secrets.GITHUB_TOKEN }}
38+
publish_dir: docs/build/
39+
force_orphan: true

.github/workflows/publish.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This workflow will upload a Python Package using Twine when a release is created
2+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
name: Upload Python Package
10+
11+
on:
12+
release:
13+
types: [published]
14+
15+
jobs:
16+
deploy:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Set up Python 3.10
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: "3.10"
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install build
29+
- name: Build package
30+
run: python -m build
31+
- name: Publish package
32+
uses: pypa/[email protected]
33+
with:
34+
user: __token__
35+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)