Skip to content

Commit 49a8776

Browse files
author
Sergio García Prado
authored
Merge pull request #182 from minos-framework/0.6.0
0.6.0
2 parents 8a4f495 + 9eaaa1e commit 49a8776

File tree

731 files changed

+45057
-6936
lines changed

Some content is hidden

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

731 files changed

+45057
-6936
lines changed

.github/stale.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
daysUntilStale: 90
2+
daysUntilClose: 14
3+
exemptLabels:
4+
- pinned
5+
- security
6+
staleLabel: wontfix
7+
markComment: >
8+
This issue has been automatically marked as stale because it has not had
9+
recent activity. It will be closed if no further activity occurs. Thank you
10+
for your contributions.
11+
closeComment: false
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: "Publish: minos-broker-rabbitmq"
2+
3+
on:
4+
push:
5+
branches:
6+
- '*.*.x'
7+
paths:
8+
- 'packages/plugins/minos-broker-rabbitmq/**'
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
container: python:3.9-buster
14+
defaults:
15+
run:
16+
working-directory: packages/plugins/minos-broker-rabbitmq
17+
18+
steps:
19+
20+
- name: Check out repository code
21+
uses: actions/checkout@v2
22+
23+
- name: Install Poetry
24+
uses: snok/install-poetry@v1
25+
26+
- name: Install dependencies
27+
run: make install
28+
29+
- name: Publish package
30+
run: make release
31+
env:
32+
POETRY_HTTP_BASIC_PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
33+
POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: "Test: minos-broker-rabbitmq"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- '*.*.x'
8+
pull_request:
9+
paths:
10+
- 'packages/plugins/minos-broker-rabbitmq/**'
11+
- 'packages/core/minos-microservice-networks/**'
12+
- 'packages/core/minos-microservice-common/**'
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
container: python:3.9-buster
18+
defaults:
19+
run:
20+
working-directory: packages/plugins/minos-broker-rabbitmq
21+
22+
services:
23+
postgres:
24+
image: postgres
25+
env:
26+
POSTGRES_USER: minos
27+
POSTGRES_PASSWORD: min0s
28+
POSTGRES_DB: order_db
29+
ports:
30+
- 5432:5432
31+
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
32+
33+
rabbitmq:
34+
image: rabbitmq:3
35+
ports:
36+
- "5672:5672"
37+
38+
env:
39+
MINOS_BROKER_QUEUE_HOST: postgres
40+
MINOS_BROKER_HOST: rabbitmq
41+
MINOS_REPOSITORY_HOST: postgres
42+
MINOS_SNAPSHOT_HOST: postgres
43+
44+
steps:
45+
- name: Check out repository code
46+
uses: actions/checkout@v2
47+
48+
- name: Install Poetry
49+
uses: snok/install-poetry@v1
50+
51+
- name: Install dependencies
52+
run: make install
53+
54+
- name: Lint package
55+
run: make lint
56+
57+
- name: Test package with coverage
58+
run: make coverage
59+
60+
- name: Publish coverage
61+
uses: codecov/codecov-action@v2
62+
with:
63+
token: ${{ secrets.CODECOV_TOKEN }}
64+
files: ./packages/plugins/minos-broker-rabbitmq/coverage.xml
65+
fail_ci_if_error: true
66+
67+
- name: Generate documentation
68+
run: make docs
69+
70+
- name: Generate build
71+
run: make dist
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: "Publish: minos-http-aiohttp"
2+
3+
on:
4+
push:
5+
branches:
6+
- '*.*.x'
7+
paths:
8+
- 'packages/plugins/minos-http-aiohttp/**'
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
container: python:3.9-buster
14+
defaults:
15+
run:
16+
working-directory: packages/plugins/minos-http-aiohttp
17+
18+
steps:
19+
20+
- name: Check out repository code
21+
uses: actions/checkout@v2
22+
23+
- name: Install Poetry
24+
uses: snok/install-poetry@v1
25+
26+
- name: Install dependencies
27+
run: make install
28+
29+
- name: Publish package
30+
run: make release
31+
env:
32+
POETRY_HTTP_BASIC_PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
33+
POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: "Test: minos-http-aiohttp"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- '*.*.x'
8+
pull_request:
9+
paths:
10+
- 'packages/plugins/minos-http-aiohttp/**'
11+
- 'packages/core/minos-microservice-networks/**'
12+
- 'packages/core/minos-microservice-common/**'
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
container: python:3.9-buster
18+
defaults:
19+
run:
20+
working-directory: packages/plugins/minos-http-aiohttp
21+
22+
services:
23+
postgres:
24+
image: postgres
25+
env:
26+
POSTGRES_USER: minos
27+
POSTGRES_PASSWORD: min0s
28+
POSTGRES_DB: order_db
29+
ports:
30+
- 5432:5432
31+
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
32+
33+
env:
34+
MINOS_BROKER_QUEUE_HOST: postgres
35+
MINOS_BROKER_HOST: kafka
36+
MINOS_REPOSITORY_HOST: postgres
37+
MINOS_SNAPSHOT_HOST: postgres
38+
39+
steps:
40+
- name: Check out repository code
41+
uses: actions/checkout@v2
42+
43+
- name: Install Poetry
44+
uses: snok/install-poetry@v1
45+
46+
- name: Install dependencies
47+
run: make install
48+
49+
- name: Lint package
50+
run: make lint
51+
52+
- name: Test package with coverage
53+
run: make coverage
54+
55+
- name: Publish coverage
56+
uses: codecov/codecov-action@v2
57+
with:
58+
token: ${{ secrets.CODECOV_TOKEN }}
59+
files: ./packages/plugins/minos-http-aiohttp/coverage.xml
60+
fail_ci_if_error: true
61+
62+
- name: Generate documentation
63+
run: make docs
64+
65+
- name: Generate build
66+
run: make dist
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: "Publish: minos-router-graphql"
2+
3+
on:
4+
push:
5+
branches:
6+
- '*.*.x'
7+
paths:
8+
- 'packages/plugins/minos-router-graphql/**'
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
container: python:3.9-buster
14+
defaults:
15+
run:
16+
working-directory: packages/plugins/minos-router-graphql
17+
18+
steps:
19+
20+
- name: Check out repository code
21+
uses: actions/checkout@v2
22+
23+
- name: Install Poetry
24+
uses: snok/install-poetry@v1
25+
26+
- name: Install dependencies
27+
run: make install
28+
29+
- name: Publish package
30+
run: make release
31+
env:
32+
POETRY_HTTP_BASIC_PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
33+
POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: "Test: minos-router-graphql"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- '*.*.x'
8+
pull_request:
9+
paths:
10+
- 'packages/plugins/minos-router-graphql/**'
11+
- 'packages/core/minos-microservice-networks/**'
12+
- 'packages/core/minos-microservice-common/**'
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
container: python:3.9-buster
18+
defaults:
19+
run:
20+
working-directory: packages/plugins/minos-router-graphql
21+
22+
services:
23+
postgres:
24+
image: postgres
25+
env:
26+
POSTGRES_USER: minos
27+
POSTGRES_PASSWORD: min0s
28+
POSTGRES_DB: order_db
29+
ports:
30+
- 5432:5432
31+
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
32+
33+
env:
34+
MINOS_BROKER_QUEUE_HOST: postgres
35+
MINOS_BROKER_HOST: kafka
36+
MINOS_REPOSITORY_HOST: postgres
37+
MINOS_SNAPSHOT_HOST: postgres
38+
39+
steps:
40+
- name: Check out repository code
41+
uses: actions/checkout@v2
42+
43+
- name: Install Poetry
44+
uses: snok/install-poetry@v1
45+
46+
- name: Install dependencies
47+
run: make install
48+
49+
- name: Lint package
50+
run: make lint
51+
52+
- name: Test package with coverage
53+
run: make coverage
54+
55+
- name: Publish coverage
56+
uses: codecov/codecov-action@v2
57+
with:
58+
token: ${{ secrets.CODECOV_TOKEN }}
59+
files: ./packages/plugins/minos-router-graphql/coverage.xml
60+
fail_ci_if_error: true
61+
62+
- name: Generate documentation
63+
run: make docs
64+
65+
- name: Generate build
66+
run: make dist

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,3 +325,5 @@ $RECYCLE.BIN/
325325
# Sphinx Api Documentation
326326
**/docs/api*
327327
**/docs/_build
328+
329+
tutorials/stock-wallet/front/stock-front

.pre-commit-config.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,31 @@ repos:
4343
name: Check minos-broker-kafka
4444
files: ^packages/plugins/minos-broker-kafka/
4545
language: system
46+
47+
- id: minos-discovery-minos-check
48+
pass_filenames: false
49+
entry: make --directory=packages/plugins/minos-discovery-minos check
50+
name: Check minos-discovery-minos
51+
files: ^packages/plugins/minos-discovery-minos/
52+
language: system
53+
54+
- id: minos-http-aiohttp-check
55+
pass_filenames: false
56+
entry: make --directory=packages/plugins/minos-http-aiohttp check
57+
name: Check minos-http-aiohttp
58+
files: ^packages/plugins/minos-http-aiohttp/
59+
language: system
60+
61+
- id: minos-router-graphql-check
62+
pass_filenames: false
63+
entry: make --directory=packages/plugins/minos-router-graphql check
64+
name: Check minos-router-graphql
65+
files: ^packages/plugins/minos-router-graphql/
66+
language: system
67+
68+
- id: minos-broker-rabbitmq-check
69+
pass_filenames: false
70+
entry: make --directory=packages/plugins/minos-broker-rabbitmq check
71+
name: Check minos-broker-rabbitmq
72+
files: ^packages/plugins/minos-broker-rabbitmq/
73+
language: system

.sonarcloud.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
sonar.python.version=3.9
2+
sonar.exclusions=tutorials/**
3+
sonar.cpd.exclusions=**/tests/**

0 commit comments

Comments
 (0)