-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
59e4370
commit fba8c5d
Showing
66 changed files
with
3,469 additions
and
833 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 |
---|---|---|
@@ -1,47 +1,35 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
name: CI | ||
|
||
name: Test Suite | ||
|
||
# Controls when the action will run. | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
push: | ||
branches: [ master ] | ||
branches: | ||
- master | ||
pull_request: | ||
branches: [ master ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macOS-latest] | ||
python-version: [ '3.6', '3.7', '3.8', '3.9', '3.10'] | ||
build: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Test dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pytest mock | ||
- name: Test with pytest | ||
run: | | ||
pytest | ||
# # to be done: https://github.com/marketplace/actions/coveralls-python#coveragepy-configuration | ||
# coveralls_finish: | ||
# needs: test | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Coveralls Finished | ||
# uses: AndreMiras/coveralls-python-action@develop | ||
# with: | ||
# parallel-finished: true | ||
|
||
- name: Build broker | ||
run: docker-compose build app | ||
|
||
- name: Install python packages | ||
run: docker-compose run --rm app poetry install | ||
|
||
- name: Check your installed dependencies for security vulnerabilities | ||
run: docker-compose run --rm app poetry check | ||
|
||
- name: Test | ||
run: docker-compose run --rm app poetry run pytest | ||
|
||
- name: Flake8 | ||
run: docker-compose run --rm app poetry run flake8 arend | ||
|
||
- name: MyPy | ||
run: docker-compose run --rm app poetry run mypy arend --no-strict-optional --ignore-missing-imports | ||
|
||
- name: Remove Services | ||
run: docker-compose down |
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 |
---|---|---|
@@ -1,53 +1,98 @@ | ||
# From https://github.com/github/gitignore/blob/master/Python.gitignore | ||
### Python ### | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# env vars | ||
.env | ||
# C extensions | ||
*.so | ||
|
||
# Pyc/pyo files. | ||
*.py[co] | ||
|
||
# Packages | ||
*.egg | ||
*.egg-info | ||
dist | ||
build | ||
eggs | ||
parts | ||
bin | ||
var | ||
sdist | ||
develop-eggs | ||
# Distribution / packaging | ||
.Python | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
pip-wheel-metadata/ | ||
share/python-wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
.venv | ||
venv | ||
*.egg | ||
static_build_files/ | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# eventual secrets file used in dynaconf (these usually contain passwords which should not be stored in the version control system) | ||
.secrets.* | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.nox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
.coverage | ||
htmlcov | ||
*.cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
|
||
# Flask: | ||
instance/ | ||
.webassets-cache | ||
|
||
#Translations | ||
# *.mo | ||
# ^^^ No, django needs the .mo files as it doesn't compile them on the fly. | ||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
|
||
#Mr Developer | ||
.mr.developer.cfg | ||
src | ||
# IPython | ||
profile_default/ | ||
ipython_config.py | ||
|
||
# Ignore generated config files | ||
etc/*.nginx.conf | ||
etc/*.logrotate | ||
# pyenv | ||
.python-version | ||
|
||
# Environments | ||
# files created with the virtual environment (these are dependent on the developer environment so they should not be stored in the version control system) | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
# Ignore ide's | ||
.idea/ | ||
.vscode | ||
# files related with IDE VSC or IntelliJ | ||
.idea/* | ||
.vscode/* | ||
**/.password | ||
### VisualStudioCode Patch ### | ||
# Ignore all local history of files | ||
.history | ||
|
||
# ignore docs | ||
docs/_* | ||
|
||
notebooks | ||
*.ipynb | ||
**/__pycache__ | ||
# db config file | ||
odi_db_config.yml | ||
config/db_config.yml | ||
design/.DS_Store | ||
.DS_Store | ||
flake8.txt | ||
.dockerignore | ||
/source/ | ||
/docs/_build/ | ||
/.devcontainer/ |
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 |
---|---|---|
@@ -1,22 +1,25 @@ | ||
default_language_version: | ||
python: python3 | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/mirrors-isort | ||
rev: 'v4.3.21' | ||
hooks: | ||
- id: isort | ||
exclude: 'settings' | ||
- repo: https://github.com/ambv/black | ||
rev: stable | ||
rev: 22.6.0 | ||
hooks: | ||
- id: black | ||
exclude: 'setup.py' | ||
args: [--line-length=79] | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.3.0 | ||
hooks: | ||
- id: check-merge-conflict | ||
- id: check-yaml | ||
- id: check-json | ||
- id: check-toml | ||
- id: end-of-file-fixer | ||
- id: mixed-line-ending | ||
- id: flake8 | ||
# NB The "exclude" setting in setup.cfg is ignored by pre-commit | ||
# exclude: '|' | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v0.971 | ||
hooks: | ||
- id: mypy | ||
files: ^arend/ | ||
args: [--no-strict-optional, --ignore-missing-imports] |
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,9 @@ | ||
Changelog | ||
=================================== | ||
|
||
0.0.1 (2022-XX-XX) | ||
------------------- | ||
|
||
- Initial project structure. | ||
|
||
- Test suite. |
This file was deleted.
Oops, something went wrong.
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,19 @@ | ||
FROM python:3.10.2 | ||
|
||
LABEL maintainer="Jose-Maria Vazquez-Jimenez" | ||
RUN apt-get update | ||
|
||
# Set timezone, not really necessary... | ||
ENV TZ=Europe/Amsterdam | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
|
||
# install basic python packages: setuptools, pip3, virtualenv | ||
RUN pip3 install --upgrade setuptools && pip3 install pip virtualenv | ||
|
||
# Let's go with poetry... | ||
ENV POETRY_VERSION=1.1.13 VENV_PATH="/code/.venv" POETRY_HOME="/opt/poetry" | ||
RUN curl -sSL https://install.python-poetry.org | python3 - --version $POETRY_VERSION | ||
ENV PATH="$POETRY_HOME/bin:$VENV_PATH/bin:$PATH" | ||
|
||
VOLUME /code | ||
WORKDIR /code |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.