Skip to content

Commit bc39263

Browse files
committed
feat: init
init
0 parents  commit bc39263

Some content is hidden

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

42 files changed

+2775
-0
lines changed

.dockerignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Specific files/folder
2+
.cache
3+
.coverage
4+
.coveragerc
5+
.dockerignore
6+
.git
7+
.gitignore
8+
.gitlab-ci.yml
9+
.noserc
10+
.venv/
11+
.idea
12+
.vscode
13+
htmlcov
14+
sonar-project.properties
15+
**/tests/**
16+
*.egg-info
17+
18+
# Ignore all markdown file except README.md, which is required by poetry
19+
*.md
20+
!README.md
21+
22+
# Ignore all *.pyc files in all folders, including build root
23+
**/*.pyc
24+
25+
# Ignore current.py file to allow symbolic link creation during docker build
26+
orange/settings/current.py

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Versions (please complete the following information):**
27+
- Browser [e.g. chrome, safari]
28+
- Version [e.g. 22]
29+
30+
**Additional context**
31+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/workflows/codeql-analysis.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: ["main"]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: ["main"]
20+
schedule:
21+
- cron: "28 1 * * 4"
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: ["python"]
36+
37+
steps:
38+
- name: Checkout repository
39+
uses: actions/checkout@v3
40+
41+
# Initializes the CodeQL tools for scanning.
42+
- name: Initialize CodeQL
43+
uses: github/codeql-action/init@v2
44+
with:
45+
languages: ${{ matrix.language }}
46+
# If you wish to specify custom queries, you can do so here or in a config file.
47+
# By default, queries listed here will override any specified in a config file.
48+
# Prefix the list here with "+" to use these queries and those in the config file.
49+
50+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
51+
# queries: security-extended,security-and-quality
52+
53+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54+
# If this step fails, then you should remove it and run the build manually (see below)
55+
- name: Autobuild
56+
uses: github/codeql-action/autobuild@v2
57+
58+
# ℹ️ Command-line programs to run using the OS shell.
59+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
60+
61+
# If the Autobuild fails above, remove it and uncomment the following three lines.
62+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
63+
64+
# - run: |
65+
# echo "Run, Build Application using script"
66+
# ./location_of_script_within_repo/buildscript.sh
67+
68+
- name: Perform CodeQL Analysis
69+
uses: github/codeql-action/analyze@v2

.github/workflows/hadolint.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: lint-hadolint
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: hadolint/[email protected]
12+
with:
13+
dockerfile: Dockerfile

.github/workflows/pre-commit.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: pre-commit
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
8+
jobs:
9+
pre-commit:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
python-version: ["3.9"]
14+
poetry-version: ["1.2"]
15+
steps:
16+
- uses: actions/checkout@v3
17+
- uses: actions/setup-python@v2
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
- name: Run image
21+
uses: abatilo/[email protected]
22+
with:
23+
poetry-version: ${{ matrix.poetry-version }}
24+
- name: Install dependencies
25+
run: poetry install
26+
- uses: pre-commit/[email protected]

.github/workflows/pylama.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: lint-pylama
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: ["3.9"]
12+
poetry-version: ["1.2"]
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Run image
20+
uses: abatilo/[email protected]
21+
with:
22+
poetry-version: ${{ matrix.poetry-version }}
23+
- name: Install dependencies
24+
run: poetry install
25+
- name: Analysing the code with pylint
26+
run: |
27+
poetry run pylama
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Semver, Build, Publish
2+
3+
on:
4+
push:
5+
branches: [main, alpha, beta]
6+
7+
jobs:
8+
semver:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
- name: Semantic Release - prepare
14+
run: |
15+
cat <<EOF > package.json
16+
{
17+
"name": "semver",
18+
"private": true
19+
}
20+
EOF
21+
- name: Semantic Release
22+
uses: cycjimmy/semantic-release-action@v3
23+
with:
24+
semantic_version: 16
25+
branches: |
26+
[
27+
'main',
28+
{
29+
name: 'alpha',
30+
prerelease: true
31+
},
32+
{
33+
name: 'beta',
34+
prerelease: true
35+
}
36+
]
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
id: semantic
40+
outputs:
41+
version: ${{ steps.semantic.outputs.new_release_version }}
42+
new_release_published: ${{ steps.semantic.outputs.new_release_published }}
43+
new_release_channel: ${{ steps.semantic.outputs.new_release_channel }}
44+
45+
build_and_publish:
46+
runs-on: ubuntu-latest
47+
needs: [semver]
48+
if: needs.semver.outputs.new_release_published == 'true'
49+
steps:
50+
- name: Checkout
51+
uses: actions/checkout@v3
52+
- name: Build
53+
run: docker build . -t ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}:${{ needs.semver.outputs.version }}
54+
- name: Tag using channel
55+
run: |
56+
CHANNEL=${{ needs.semver.outputs.new_release_channel }}
57+
docker build . -t ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}:${CHANNEL:-'latest'}
58+
- name: Login to Docker Hub
59+
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
60+
- name: Push image
61+
run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}:${{ needs.semver.outputs.version }}
62+
- name: Push image on channel tag
63+
run: |
64+
CHANNEL=${{ needs.semver.outputs.new_release_channel }}
65+
docker push ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}:${CHANNEL:-'latest'}

.gitignore

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
### Python ###
2+
3+
*.log
4+
*.pot
5+
*.pyc
6+
__pycache__/
7+
local_settings.py
8+
media
9+
ca.pem
10+
client.crt
11+
client.key
12+
current.py
13+
local.py
14+
15+
# Unit test / coverage reports
16+
htmlcov
17+
.coverage*
18+
coverage.xml
19+
junit-report.xml
20+
tmp/
21+
22+
# Sphinx documentation
23+
docs/_build/
24+
public
25+
26+
# pyenv
27+
.python-version
28+
29+
# Environments
30+
.env
31+
.venv
32+
33+
### Vim ###
34+
# Swap
35+
[._]*.s[a-v][a-z]
36+
[._]*.sw[a-p]
37+
[._]s[a-rt-v][a-z]
38+
[._]ss[a-gi-z]
39+
[._]sw[a-p]
40+
41+
# Session
42+
Session.vim
43+
44+
# Temporary
45+
.netrwhist
46+
# Auto-generated tag files
47+
tags
48+
# Persistent undo
49+
[._]*.un~
50+
51+
### VisualStudioCode ###
52+
.vscode
53+
54+
# Celery TMP files
55+
celerybeat-schedule*
56+
57+
# idea
58+
tmp/*
59+
.idea/*

0 commit comments

Comments
 (0)