Skip to content

chore(deps): update abatilo/actions-poetry action to v2.4.0 #89

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: alpha
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
with:
python-version: "3.10"
- name: Run image
uses: abatilo/actions-poetry@v2.3.0
uses: abatilo/actions-poetry@v2.4.0
with:
poetry-version: 1.3
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/actions-poetry@v2.3.0
uses: abatilo/actions-poetry@v2.4.0
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pylama.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/actions-poetry@v2.3.0
uses: abatilo/actions-poetry@v2.4.0
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install dependencies
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,28 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/actions-poetry@v2.3.0
uses: abatilo/actions-poetry@v2.4.0
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install dependencies
run: poetry install
- name: Run tests with coverage
run: |
poetry run coverage run
poetry run coverage xml
run: poetry run coverage run
env:
POSTGRES_HOST: localhost
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
TESTING: "true"
SECRET_KEY: "very_secret_key"
OIDC_OP_JWKS_ENDPOINT: "http://nowhere.com"

- name: Export Coverage
if: always()
run: poetry run coverage xml

- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v3
if: always()
with:
verbose: true
files: coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ repos:
exclude: "static/.*"

- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.0.0
rev: v9.16.0
hooks:
- id: commitlint
stages: [commit-msg]
Expand Down
4 changes: 2 additions & 2 deletions devops/docker-compose.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ services:
- 6379:6379

rabbitmq:
image: bitnami/rabbitmq:3.11.16
image: bitnami/rabbitmq:3.12.0
profiles:
- data
- all
Expand Down Expand Up @@ -158,7 +158,7 @@ services:

# This optional and it's used to monitor the API
statsd-exporter:
image: prom/statsd-exporter:v0.23.1
image: prom/statsd-exporter:v0.24.0
ports:
- "9125:9125/udp"
- "9102:9102"
Expand Down
3,020 changes: 1,556 additions & 1,464 deletions poetry.lock

Large diffs are not rendered by default.

32 changes: 22 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ packages = [{ include = "controller" }]

[tool.poetry.dependencies]
python = "^3.9"
Django = "^4.1.3"
django-admin-action-tools = "1.1.6"
Django = "^4.2.0"
django-admin-action-tools = "1.1.6-alpha.3"
djangorestframework = "^3.14.0"
gunicorn = "^20.1.0"
psycopg2-binary = "^2.9.5"
Expand All @@ -26,18 +26,19 @@ pytest-xdist = "^3.1.0"
undecorated = "^0.3.0"
django-health-check = "^3.17.0"
celery = "^5.2.7"
sentry-dynamic-sampling-lib = "^1.2.0a2"
sentry-dynamic-sampling-lib = "^1.2.0-alpha.2"
# sentry-dynamic-sampling-lib = { path = "../sentry-dynamic-sampling-lib/", develop = true }python = "^3.9"
sentry-sdk = "^1.14.0"
sentry-sdk = "^1.25"
django-nonrelated-inlines = "^0.2"
python-dateutil = "^2.8.2"
django-vendor-files = "^0.3"
requests = "^2.29.0"


[tool.poetry.group.dev.dependencies]
bandit = "^1.7.4"
black = "^23.0.0"
coverage = "^6.5.0"
coverage = "^7"
parameterized = "^0.9.0"
pre-commit = "^3.0.0"
pylama = "^8.4.1"
Expand All @@ -51,13 +52,15 @@ pytest-xdist = "^3.2.0"
sphinx = "^5"
sphinxcontrib-django = "^2.0"
sphinxcontrib-httpdomain = "^1.8.1"
sphinxcontrib-mermaid = "^0.8"
sphinxcontrib-mermaid = "^0.9"
sphinx-rtd-theme = "^1.2.0"
m2r2 = "0.2.7"
m2r2 = "^0.3"
mistune = "0.8.4"
sphinx-nested-apidoc = "^1.2.2"
mypy = "^0.991"
django-stubs = { extras = ["compatible-mypy"], version = "^1.14.0" }
mypy = "^1.3"
django-stubs = { extras = ["compatible-mypy"], version = "^4.2" }

# see https://github.com/klen/pylama/issues/232
pydocstyle = "6.1.1"


Expand Down Expand Up @@ -128,7 +131,7 @@ command_line = "-m pytest"
relative_files = true
omit = [
'*/apps.py',
'*/tests*',
'*/tests/*',
'*/settings.py',
'*/migrations/*',
"controller/urls.py",
Expand All @@ -140,6 +143,15 @@ branch = true

[tool.coverage.report]
fail_under = 100
omit = [
'*/apps.py',
'*/tests/*',
'*/settings.py',
'*/migrations/*',
"controller/urls.py",
"controller/wsgi.py",
"controller/celery.py",
]

[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "controller.settings"
Expand Down