Skip to content

Commit 7713d10

Browse files
committed
First commit
0 parents  commit 7713d10

File tree

169 files changed

+25879
-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.

169 files changed

+25879
-0
lines changed

.env.example

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# example of file for storing private and user specific environment variables, like keys or system paths
2+
# rename it to ".env" (excluded from version control by default)
3+
# .env is loaded by train.py automatically
4+
# hydra allows you to reference variables in .yaml configs with special syntax: ${oc.env:MY_VAR}
5+
6+
MY_VAR="/home/user/my/system/path"

.github/PULL_REQUEST_TEMPLATE.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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 **test your PR locally** with `pytest` command?
18+
- [ ] Did you **run pre-commit hooks** with `pre-commit run -a` command?
19+
20+
## Did you have fun?
21+
22+
Make sure you had fun coding 🙃

.github/codecov.yml

+15
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

+16
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/release-drafter.yml

+44
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
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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@v2
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v2
20+
21+
- name: Run pre-commits
22+
uses: pre-commit/[email protected]
+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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@v2
20+
21+
- name: Set up Python
22+
uses: actions/setup-python@v2
23+
24+
- name: Find modified files
25+
id: file_changes
26+
uses: trilom/[email protected]
27+
with:
28+
output: " "
29+
30+
- name: List modified files
31+
run: echo '${{ steps.file_changes.outputs.files}}'
32+
33+
- name: Run pre-commits
34+
uses: pre-commit/[email protected]
35+
with:
36+
extra_args: --files ${{ steps.file_changes.outputs.files}}

.github/workflows/release-drafter.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
# branches to consider in the event; optional, defaults to all
6+
branches:
7+
- main
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
update_release_draft:
14+
permissions:
15+
# write permission is required to create a github release
16+
contents: write
17+
# write permission is required for autolabeler
18+
# otherwise, read permission is required at least
19+
pull-requests: write
20+
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
# Drafts your next Release notes as Pull Requests are merged into "master"
25+
- uses: release-drafter/release-drafter@v5
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

+139
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main, "release/*", "dev"]
8+
9+
jobs:
10+
run_tests_ubuntu:
11+
runs-on: ${{ matrix.os }}
12+
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os: ["ubuntu-latest"]
17+
python-version: ["3.8", "3.9", "3.10"]
18+
19+
timeout-minutes: 20
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v3
24+
25+
- name: Set up Python ${{ matrix.python-version }}
26+
uses: actions/setup-python@v3
27+
with:
28+
python-version: ${{ matrix.python-version }}
29+
30+
- name: Install dependencies
31+
run: |
32+
conda env create -f environment.yml
33+
python -m pip install --upgrade pip
34+
pip install pytest
35+
pip install sh
36+
37+
- name: List dependencies
38+
run: |
39+
python -m pip list
40+
41+
- name: Run pytest
42+
run: |
43+
pytest -v
44+
45+
run_tests_macos:
46+
runs-on: ${{ matrix.os }}
47+
48+
strategy:
49+
fail-fast: false
50+
matrix:
51+
os: ["macos-latest"]
52+
python-version: ["3.8", "3.9", "3.10"]
53+
54+
timeout-minutes: 20
55+
56+
steps:
57+
- name: Checkout
58+
uses: actions/checkout@v3
59+
60+
- name: Set up Python ${{ matrix.python-version }}
61+
uses: actions/setup-python@v3
62+
with:
63+
python-version: ${{ matrix.python-version }}
64+
65+
- name: Install dependencies
66+
run: |
67+
conda env create -f environment.yml
68+
python -m pip install --upgrade pip
69+
pip install pytest
70+
pip install sh
71+
72+
- name: List dependencies
73+
run: |
74+
python -m pip list
75+
76+
- name: Run pytest
77+
run: |
78+
pytest -v
79+
80+
run_tests_windows:
81+
runs-on: ${{ matrix.os }}
82+
83+
strategy:
84+
fail-fast: false
85+
matrix:
86+
os: ["windows-latest"]
87+
python-version: ["3.8", "3.9", "3.10"]
88+
89+
timeout-minutes: 20
90+
91+
steps:
92+
- name: Checkout
93+
uses: actions/checkout@v3
94+
95+
- name: Set up Python ${{ matrix.python-version }}
96+
uses: actions/setup-python@v3
97+
with:
98+
python-version: ${{ matrix.python-version }}
99+
100+
- name: Install dependencies
101+
run: |
102+
conda env create -f environment.yml
103+
python -m pip install --upgrade pip
104+
pip install pytest
105+
106+
- name: List dependencies
107+
run: |
108+
python -m pip list
109+
110+
- name: Run pytest
111+
run: |
112+
pytest -v
113+
114+
# upload code coverage report
115+
code-coverage:
116+
runs-on: ubuntu-latest
117+
118+
steps:
119+
- name: Checkout
120+
uses: actions/checkout@v2
121+
122+
- name: Set up Python 3.10
123+
uses: actions/setup-python@v2
124+
with:
125+
python-version: "3.10"
126+
127+
- name: Install dependencies
128+
run: |
129+
conda env create -f environment.yml
130+
python -m pip install --upgrade pip
131+
pip install pytest
132+
pip install pytest-cov[toml]
133+
pip install sh
134+
135+
- name: Run tests and collect coverage
136+
run: pytest --cov flowdock # NEEDS TO BE UPDATED WHEN CHANGING THE NAME OF "src" FOLDER
137+
138+
- name: Upload coverage to Codecov
139+
uses: codecov/codecov-action@v3

0 commit comments

Comments
 (0)